emularity icon indicating copy to clipboard operation
emularity copied to clipboard

Canvas name is fixed to #canvas in recent emscripten MAME

Open pengan1987 opened this issue 5 years ago • 0 comments

I was used #emularity-canvas as my canvas name, like this one

var emulator = new Emulator(document.querySelector("#emularity-canvas"), null, new JSMAMELoader(JSMAMELoader.driver ......

It was working fine with older wasm MAME build (about 2018 to 2019) and broken in recent emscripten build. I have to change my canvas name to #canvas to make it working. Does anyone knows why emscripten break it? And is there a workaround for it?

pengan1987 avatar Jan 28 '21 02:01 pengan1987