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

Unified Diff: chromeDevenvPoller__.js

Issue 29573134: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/buildtools/
Patch Set: Remove change from geckoInfo.js.tmpl Created Oct. 11, 2017, 11:32 a.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeDevenvPoller__.js
===================================================================
--- a/chromeDevenvPoller__.js
+++ b/chromeDevenvPoller__.js
@@ -2,28 +2,28 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
(function()
{
var version = null;
function doPoll()
{
- fetch(chrome.extension.getURL("devenvVersion__"))
+ fetch(browser.extension.getURL("devenvVersion__"))
.then(function(response)
{
return response.text();
})
.then(function(text)
{
if (version == null)
version = text;
if (text != version)
- chrome.runtime.reload();
+ browser.runtime.reload();
else
window.setTimeout(doPoll, 5000);
});
}
// Delay first poll to prevent reloading again immediately after a reload
doPoll();
})();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld