pretty sure that'll fix it
This commit is contained in:
@@ -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);
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user