From 0b3db6b5e48a650e0d09d7ed1a47037c6af87e8b Mon Sep 17 00:00:00 2001 From: Matthew Finkel Date: Sun, 17 Jan 2021 16:50:46 +0000 Subject: [PATCH] Return null when webgl is not allowed (thanks Matthew Finkel for patch). --- src/content/webglHook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/webglHook.js b/src/content/webglHook.js index 6201338..d627d9a 100644 --- a/src/content/webglHook.js +++ b/src/content/webglHook.js @@ -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"});