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)}`; |
}, |