spinnerbox Posted May 31, 2015 Share Posted May 31, 2015 So yes Chrome has its own local storage API. I usedchrome.storage.local.set({"item": itemValue});andchrome.storage.local.get("item", function (result) {console.log(result);});For all my storage calls. The problem I face is Phaser.js includes localStorage statement somewhere inside of it, which doesn't allow me to view my game at all. So Instead I get this error in console:window.localStorage is not available in packaged apps. Use chrome.storage.localand a black screen. What would you do in this case? Is there some functionality I could turn off in Phaser or I just don't bother with Chrome Web Store at all? Link to comment Share on other sites More sharing options...
spinnerbox Posted May 31, 2015 Author Share Posted May 31, 2015 Hehe quick workaround:window.localStorage = undefined;Need to test it, but at least chrome doesn't complain. Don't do this in your builds for other browsers. In case you want to try building extensions for Chrome: https://developer.chrome.com/extensions/getstartedhttps://developer.chrome.com/extensions/storage Link to comment Share on other sites More sharing options...
Recommended Posts