Workaround for browser.tabs in a content script having an explicit undefined value

This commit is contained in:
PHO 2019-05-21 17:53:36 +09:00
parent 3bf01ffde4
commit 10a744fa32

View file

@ -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") ===