Skip to content

Commit

Permalink
Return null when webgl is not allowed (thanks Matthew Finkel for patch).
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Finkel authored and hackademix committed Jan 17, 2021
1 parent 6abb3c9 commit 0b3db6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/webglHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"});
Expand Down

0 comments on commit 0b3db6b

Please sign in to comment.