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

Unified Diff: lib/popupBlocker.js

Issue 29713631: Issue 5760 - Use relative require paths (Closed)
Patch Set: Created March 3, 2018, 4:09 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
Index: lib/popupBlocker.js
===================================================================
--- a/lib/popupBlocker.js
+++ b/lib/popupBlocker.js
@@ -14,21 +14,22 @@
* 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");
+const {defaultMatcher} = require("../adblockpluscore/lib/matcher");
+const {BlockingFilter, RegExpFilter} = require(
kzar 2018/03/19 21:50:08 Better to do it like this in this instance: const
Jon Sonesen 2018/03/20 23:25:18 Acknowledged.
+"../adblockpluscore/lib/filterClasses");
+const {stringifyURL, isThirdParty, extractHostFromFrame} = require("./url");
+const {checkWhitelisted} = require("./whitelisting");
+const {logRequest} = require("./devtools");
let loadingPopups = new Map();
function forgetPopup(tabId)
{
loadingPopups.delete(tabId);
if (loadingPopups.size == 0)

Powered by Google App Engine
This is Rietveld