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: Created Oct. 9, 2017, 5:39 p.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') | popup.html » ('J')
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();
Manish Jethani 2017/10/09 17:43:24 Finally there's no need to access the background p
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') | popup.html » ('J')

Powered by Google App Engine
This is Rietveld