Skip to content

Commit c945972

Browse files
committed
InstanceOf was failing inside a firefox extension
1 parent 148ca41 commit c945972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@
20702070
curElement = typeof aCanvas === "string" ? document.getElementById(aCanvas) : aCanvas;
20712071
}
20722072

2073-
if (!(curElement instanceof HTMLCanvasElement)) {
2073+
if (!('getContext' in curElement)) {
20742074
throw("called Processing constructor without passing canvas element reference or id.");
20752075
}
20762076

0 commit comments

Comments
 (0)