Skip to content

Commit cbfc548

Browse files
Matthew Finkelhackademix
Matthew Finkel
authored andcommitted
Return null when webgl is not allowed
1 parent 6abb3c9 commit cbfc548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/webglHook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if (typeof exportFunction === "function") ns.on("capabilities", event => {
8080
error(e);
8181
}
8282
notifyPage();
83-
return {};
83+
return null;
8484
}
8585
return getContext.call(this, type, ...rest);
8686
}, proto, {defineAs: "getContext"});

0 commit comments

Comments
 (0)