Sign in to follow this  

Phaser and Chrome Web Store

Recommended Posts

So yes Chrome has its own local storage API. I used{"item": itemValue});

and"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

and 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?

Share this post

Link to post
Share on other sites

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:

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.