Return null when webgl is not allowed (thanks Matthew Finkel for patch).

This commit is contained in:
Matthew Finkel 2021-01-17 16:50:46 +00:00 committed by hackademix
parent 6abb3c9488
commit 0b3db6b5e4
1 changed files with 1 additions and 1 deletions

View File

@ -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"});