pretty sure that'll fix it

This commit is contained in:
idk
2019-11-24 20:57:41 -05:00
parent 749ff30b5b
commit 2fab8e042f
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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) {