javascript - Library uses localStorage - Chrome Web Store -
so yes chrome has own local storage api. used
chrome.storage.local.set({"item": itemvalue});
and
chrome.storage.local.get("item", function (result) { console.log(result); });
for storage calls.
the problem face have developed html5 game phaser.js , includes localstorage statement somewhere inside of it, doesn't allow me view game @ all. instead error in console:
window.localstorage not available in packaged apps. use chrome.storage.local
and black screen.
what in case? don't develop phaser.js there functionality turn off in chrome/api or don't bother chrome web store @ all?
try load code before load phaser.js :
window.localstorage = undefined;
or :
window.localstorage.getitem = undefined;
Comments
Post a Comment