Return null when webgl is not allowed (thanks Matthew Finkel for patch).
This commit is contained in:
parent
6abb3c9488
commit
0b3db6b5e4
|
@ -80,7 +80,7 @@ if (typeof exportFunction === "function") ns.on("capabilities", event => {
|
|||
error(e);
|
||||
}
|
||||
notifyPage();
|
||||
return {};
|
||||
return null;
|
||||
}
|
||||
return getContext.call(this, type, ...rest);
|
||||
}, proto, {defineAs: "getContext"});
|
||||
|
|
Loading…
Reference in New Issue