-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localStorage is not available for opaque origins #18
Comments
What's the project. Is it open source? |
was not able to et arcade-physics working with |
Support for overlap has been added 4 days ago. |
interesting. i still need the ability to read in tilemaps for collisions and object layers. is that possible with arcade-physics? |
not sure if thats fully related to this but I had a bunch of similar issues. Try changing this line from the dist https://github.com/geckosio/phaser-on-nodejs/blob/master/src/index.ts#L10 to read have an URL: -const dom = new JSDOM(`<!DOCTYPE html><body></body>`);
+const dom = new JSDOM(`<!DOCTYPE html><body></body>`, {
+ url: 'http://localhost/'
+}); |
Not yet, but I plan to implement it. |
Describe the bug
Cannot run a project which imports
phaser-on-nodejs
in dev mode.When refreshing the page, i get the error
SecurityError: localStorage is not available for opaque origins
Seems this is supposedly caused by
jest
and JSDOM, but none of the fixes suggested in the issues i've found have workedThe text was updated successfully, but these errors were encountered: