szatkus / js2me

J2ME implementation in JavaScript
MIT License
134 stars 27 forks source link

MozActivity not defined #2

Closed kripken closed 10 years ago

kripken commented 10 years ago

I load index.html as the readme says, but when I click the big arrow I get an error in the console, ReferenceError: MozActivity is not defined.

From the docs it sounds like MozActivity is only present in Firefox OS, so is it not possible to run in desktop Firefox or Chrome?

szatkus commented 10 years ago

Readme is little outdated, I'm sorry :) You can run the app in Firefox OS Simulator, but it's still possible to run it under browser. Launch HTTP server in directory with js2me (for example: $ python3 -m http.server) and open index.html with src parameter (for example: http://localhost:8000/index.html?src=jars/asteroids.jar).

kripken commented 10 years ago

Thanks!