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

Side by Side Diff: ext/popup.js

Issue 29570774: Issue 5593 - Merge notification.js and stats.js into popup.js (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rename ev to event Created Oct. 10, 2017, 5:17 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | notification.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 "use strict";
2
3 (function()
4 {
5 if (typeof chrome == "undefined" || typeof chrome.extension == "undefined")
6 window.chrome = browser;
7 const backgroundPage = chrome.extension.getBackgroundPage();
8 window.ext = Object.create(backgroundPage.ext);
9
10 // We have to override ext.backgroundPage, because in order
11 // to send messages the local "chrome" namespace must be used.
12 window.ext.backgroundPage = {
13 sendMessage: chrome.runtime.sendMessage,
14
15 getWindow()
16 {
17 return backgroundPage;
18 }
19 };
20 }());
OLDNEW
« no previous file with comments | « no previous file | notification.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld