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

Unified Diff: lib/popupBlocker.js

Issue 29715577: Issue 6449 - Switch to Harmony modules (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Add lib/.eslintrc.json Created March 6, 2018, 10:30 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
« lib/.eslintrc.json ('K') | « lib/options.js ('k') | lib/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/popupBlocker.js
===================================================================
--- a/lib/popupBlocker.js
+++ b/lib/popupBlocker.js
@@ -12,23 +12,21 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
/** @module popupBlocker */
-"use strict";
-
-const {defaultMatcher} = require("matcher");
-const {BlockingFilter, RegExpFilter} = require("filterClasses");
-const {stringifyURL, isThirdParty, extractHostFromFrame} = require("url");
-const {checkWhitelisted} = require("whitelisting");
-const {logRequest} = require("devtools");
+import {defaultMatcher} from "matcher";
+import {BlockingFilter, RegExpFilter} from "filterClasses";
+import {stringifyURL, isThirdParty, extractHostFromFrame} from "url";
+import {checkWhitelisted} from "whitelisting";
+import {logRequest} from "devtools";
let loadingPopups = new Map();
function forgetPopup(tabId)
{
loadingPopups.delete(tabId);
if (loadingPopups.size == 0)
« lib/.eslintrc.json ('K') | « lib/options.js ('k') | lib/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld