mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Workaround for browser.tabs in a content script having an explicit undefined value
This commit is contained in:
parent
3bf01ffde4
commit
10a744fa32
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ export function inContentScript() {
|
|||
Background page
|
||||
*/
|
||||
export function getContext() {
|
||||
if (!("tabs" in browser)) {
|
||||
if (!browser.tabs) {
|
||||
return "content"
|
||||
} else if (
|
||||
browser.runtime.getURL("_generated_background_page.html") ===
|
||||
|
|
Loading…
Add table
Reference in a new issue