Index: firstRun.js |
=================================================================== |
--- a/firstRun.js |
+++ b/firstRun.js |
@@ -50,17 +50,17 @@ |
setLinks("acceptable-ads-explanation", link, openFilters); |
}); |
getDocLink("contribute", (link) => |
{ |
setLinks("share-headline", link); |
}); |
- chrome.runtime.sendMessage({ |
+ browser.runtime.sendMessage({ |
type: "app.get", |
what: "issues" |
}, (issues) => |
{ |
// Show warning if filterlists settings were reinitialized |
if (issues.filterlistsReinitialized) |
{ |
E("filterlistsReinitializedWarning").removeAttribute("hidden"); |
@@ -72,17 +72,17 @@ |
ext.onMessage.addListener((message) => |
{ |
if (message.type == "subscriptions.respond") |
{ |
updateSocialLinks(); |
} |
}); |
- chrome.runtime.sendMessage({ |
+ browser.runtime.sendMessage({ |
type: "subscriptions.listen", |
filter: ["added", "removed", "updated", "disabled"] |
}); |
} |
function updateSocialLinks() |
{ |
for (let network of ["twitter", "facebook", "gplus"]) |
@@ -109,13 +109,13 @@ |
getDocLink(event.target.id, (link) => |
{ |
openSharePopup(link); |
}); |
} |
function openFilters() |
{ |
- chrome.runtime.sendMessage({type: "app.open", what: "options"}); |
+ browser.runtime.sendMessage({type: "app.open", what: "options"}); |
} |
document.addEventListener("DOMContentLoaded", onDOMLoaded, false); |
}()); |