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