|
|
@ -328,11 +328,10 @@ function _getResourceFromStorage(locator) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function _putResourceIntoStorage(locator, data) { |
|
|
|
function _putResourceIntoStorage(locator, data) { |
|
|
|
var curTime = new Date().getTime() / 1000; |
|
|
|
$.localStorage.set(locator, { |
|
|
|
var storedResource = {time: curTime, data: data}; |
|
|
|
time: Math.trunc(new Date().getTime() / 1000), |
|
|
|
|
|
|
|
data: data |
|
|
|
var storage = $.localStorage; |
|
|
|
}); |
|
|
|
storage.set(locator, storedResource); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function cleanupStorage() { |
|
|
|
function cleanupStorage() { |
|
|
|