Skip to content

Commit

Permalink
Safer check
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jan 21, 2024
1 parent dd14b63 commit fad2870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {executeFunction} from 'webext-content-scripts';
const contextMenuId = 'webext-domain-permission-toggle:add-permission';
let globalOptions: Options;

const chromeP = isChrome() && chrome.runtime.getManifest().manifest_version < 3
const chromeP = isChrome() && globalThis.chrome?.runtime?.getManifest().manifest_version < 3
? chromePromised
: chrome;

Expand Down

0 comments on commit fad2870

Please sign in to comment.