kenwheeler / mobile-preview

Atom Editor package that opens either a remote/local url or your current file in a mobile preview panel
MIT License
19 stars 6 forks source link

Doesn't work with javascript #3

Open ThaisRobba opened 9 years ago

ThaisRobba commented 9 years ago

It manages to open and run fine unless there is javascript involved - with js it just halts.

kenwheeler commented 9 years ago

Can you see any errors?

ThaisRobba commented 9 years ago

I get this: Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at http://10.0.1.107:8080/assets/ui/progress_bar.png may not be loaded. phaser-arcade-physics.js:5490

(I'm using the Phaser js game framework and running a local server on my desktop machine)

kenwheeler commented 9 years ago

sounds like a CORS error. Are you running it right from the file system or serving it?

ThaisRobba commented 9 years ago

Serving it using Python's SimpleHTTPServer