mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51: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
|
Background page
|
||||||
*/
|
*/
|
||||||
export function getContext() {
|
export function getContext() {
|
||||||
if (!("tabs" in browser)) {
|
if (!browser.tabs) {
|
||||||
return "content"
|
return "content"
|
||||||
} else if (
|
} else if (
|
||||||
browser.runtime.getURL("_generated_background_page.html") ===
|
browser.runtime.getURL("_generated_background_page.html") ===
|
||||||
|
|
Loading…
Add table
Reference in a new issue