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

Unified Diff: chrome/ext/popup.js

Issue 29403564: Issue 5083 - Merges chrome subdirectory to top level directory (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome
Patch Set: Created April 10, 2017, 6:52 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 | « chrome/ext/devtools.js ('k') | chrome/icons/abp-16.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ext/popup.js
===================================================================
deleted file mode 100644
--- a/chrome/ext/popup.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-(function()
-{
- const backgroundPage = chrome.extension.getBackgroundPage();
- window.ext = Object.create(backgroundPage.ext);
-
- window.ext.closePopup = () =>
- {
- window.close();
- };
-
- // We have to override ext.backgroundPage, because in order
- // to send messages the local "chrome" namespace must be used.
- window.ext.backgroundPage = {
- sendMessage: chrome.runtime.sendMessage,
-
- getWindow()
- {
- return backgroundPage;
- }
- };
-}());
« no previous file with comments | « chrome/ext/devtools.js ('k') | chrome/icons/abp-16.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld