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: Created May 8, 2018, 1:03 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 | « no previous file | lib/antiadblockInit.js » ('j') | messageResponder.js » ('J')
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=";
let modules = {};
window.require = function(module)
{
- return modules[module];
+ return modules[module.substr(module.lastIndexOf("/") + 1)];
Jon Sonesen 2018/05/08 01:04:26 this is a bit hacky and doesn't help if multiple m
};
modules.utils = {
Utils: {
getDocLink(link)
{
return `${redirectLink}${encodeURIComponent(link)}`;
},
« no previous file with comments | « no previous file | lib/antiadblockInit.js » ('j') | messageResponder.js » ('J')

Powered by Google App Engine
This is Rietveld