From 2fab8e042f23b8d5a5d337adec2a63a4ba03345f Mon Sep 17 00:00:00 2001 From: idk Date: Sun, 24 Nov 2019 20:57:41 -0500 Subject: [PATCH] pretty sure that'll fix it --- background.js | 1 + context.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index 8cbe2c0..f697ade 100644 --- a/background.js +++ b/background.js @@ -81,6 +81,7 @@ function onCreated(context) { var gettingInfo = browser.runtime.getPlatformInfo(); gettingInfo.then(got => { if (got.os == "android") { + browser.contextualIdentities.query({}).then(onContextsGot, onError); } else { browser.windows.onCreated.addListener(() => { browser.contextualIdentities.query({}).then(onContextsGot, onError); diff --git a/context.js b/context.js index 5df468b..b1712dc 100644 --- a/context.js +++ b/context.js @@ -1,4 +1,5 @@ //var windowIds = [] +var titlepref = chrome.i18n.getMessage("titlePreface"); function onError(error) { console.log(`Error: ${error}`); @@ -51,7 +52,7 @@ if (browser.contextualIdentities === undefined) { } else { browser.contextualIdentities .query({ - name: "I2P Browser" + name: titlepref }) .then(identities => { if (!identities.length) {