Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: options.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Refactor polyfill.js Created Oct. 10, 2017, 10:39 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « options.html ('k') | polyfill.js » ('j') | polyfill.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: options.js
===================================================================
--- a/options.js
+++ b/options.js
@@ -19,17 +19,17 @@
let iframe = document.getElementById("content");
iframe.onload = () =>
{
document.title = iframe.contentDocument.title;
};
-chrome.runtime.sendMessage({
+browser.runtime.sendMessage({
type: "app.get",
what: "application"
},
application =>
{
// Load the mobile version of the options page on Firefox for Android.
iframe.src = iframe.getAttribute("data-src-" + application) ||
iframe.getAttribute("data-src");
« no previous file with comments | « options.html ('k') | polyfill.js » ('j') | polyfill.js » ('J')

Powered by Google App Engine
This is Rietveld