Skip to content

Commit d6f1155

Browse files
committed
[Bug 16795][emscripten] Correctly get drawing canvas from DOM element
We were using the HTML Canvas API incorrectly, which was causing exceptions to be thrown by browsers with conformant implementations. See: * https://bugzilla.mozilla.org/show_bug.cgi?id=1244480 * whatwg/html#595
1 parent ac66822 commit d6f1155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/src/em-surface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mergeInto(LibraryManager.library, {
2626
var canvas = Module['canvas'];
2727

2828
// Create and get a 2D rendering context for the canvas
29-
var context = canvas.getContext('2d', false);
29+
var context = canvas.getContext('2d');
3030
if (!context) {
3131
context = Browser.createContext(canvas, false, true);
3232
}

0 commit comments

Comments
 (0)