MCPcopy Create free account
hub / github.com/codemistic/Web-Development / getData

Function getData

Facemash/js_fm.js:171–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169
170// getting data from local storage, if present
171function getData() {
172 for (key in localStorage['pointsDict']) {
173 if (localStorage['pointsDict'][key] !== [0, 0, 0]) {
174 pointsDict = JSON.parse(localStorage['pointsDict']);
175 return;
176 }
177 }
178 // for a new session
179 setData();
180}
181getData();
182
183// function(){clears rank}

Callers 1

js_fm.jsFile · 0.85

Calls 2

setDataFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected