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

Unified Diff: background.js

Issue 29773630: Issue 5761 - Changes require paths to relative (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Address PS2 comment Created July 31, 2018, 6:46 p.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 | « no previous file | lib/antiadblockInit.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -85,17 +85,17 @@
const acceptableAds = `${subscriptionServer}/exceptionrules.txt`;
const acceptableAdsPrivacyFriendly =
`${subscriptionServer}/exceptionrules-privacy-friendly.txt`;
const redirectLink = "https://adblockplus.org/redirect?link=";
const modules = {};
window.require = function(module)
{
- return modules[module];
+ return modules[module.split("/").pop()];
};
modules.utils = {
Utils: {
getDocLink(link)
{
return `${redirectLink}${encodeURIComponent(link)}`;
},
« no previous file with comments | « no previous file | lib/antiadblockInit.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld