MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / saveStats

Function saveStats

modules/toc/toc.js:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 function saveStats() {
75 stats.windows.previous = stats.windows.current;
76 stats.timeOnPage += (+new Date()) - loadTime;
77 // stats.scrollLog = [];
78 localStorage.setItem('stats', JSON.stringify(stats));
79 return;
80 }
81
82 function loadStats() {
83 var stats = JSON.parse(localStorage.getItem('stats'));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected