FS-8087 #comment fix depth issue in cached json

This commit is contained in:
Anthony Minessale committed 2015-08-28 14:28:48 -05:00
1 parent 63b4ae79c1
commit 17ee8dde70
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -1105,9 +1105,10 @@ var iceTimer;
var cached = localStorage.getItem("res_" + cam);
if (cached) {
$.FSRTC.validRes = $.parseJSON(cached);
console.log("CACHED RES FOR CAM " + cam, $.FSRTC.validRes);
return func ? func($.FSRTC.validRes) : null;
var cache = $.parseJSON(cached);
$.FSRTC.validRes = cache.validRes;
console.log("CACHED RES FOR CAM " + cam, cache);
return func ? func(cache) : null;
}