Skip to content
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

refactored code to use es6 modules #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

hkiame
Copy link
Contributor

@hkiame hkiame commented Nov 20, 2020

i refactored the code to use es6 modules. A problem with ES6 modules is that they are subjected to same-origin policy. To run the game one will need to have a server or disabled same-origin in the browser which not recommend. I like to hear your view on this. I am thinking of adding a feature that will check if the code is run running from the server otherwise it shows some warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant