1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

.nodeName not readable on HTMLCanvasElementPrototype.

Fixes #66.
This commit is contained in:
kkapsner 2016-04-30 15:05:20 +02:00
parent 4465ff8435
commit 8240bf6007

View File

@ -12,7 +12,12 @@
var canvas = false;
var inDOM = null;
if (context){
if (context.nodeName === "CANVAS"){
var nodeName;
try {
nodeName = context.nodeName
}
catch (e){}
if (nodeName === "CANVAS"){
canvas = context;
}
else if (