mobile-preview icon indicating copy to clipboard operation
mobile-preview copied to clipboard

Doesn't work with javascript

Open ThaisRobba opened this issue 11 years ago • 4 comments

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

ThaisRobba avatar Oct 13 '14 22:10 ThaisRobba

Can you see any errors?

kenwheeler avatar Oct 13 '14 22:10 kenwheeler

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)

ThaisRobba avatar Oct 13 '14 22:10 ThaisRobba

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

kenwheeler avatar Oct 14 '14 01:10 kenwheeler

Serving it using Python's SimpleHTTPServer

ThaisRobba avatar Oct 14 '14 02:10 ThaisRobba