Skip to content

Commit

Permalink
fix getCurrentUBORedirects()
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Nov 2, 2022
1 parent 4c18c35 commit 24e51b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-sources-updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async function checkForUBOScriptletsUpdates() {
/**
* UBO redirects github page
*/
const UBO_REDIRECTS_DIRECTORY_FILE = 'https://raw.githubusercontent.com/gorhill/uBlock/master/src/js/redirect-engine.js';
const UBO_REDIRECTS_DIRECTORY_FILE = 'https://raw.githubusercontent.com/gorhill/uBlock/master/src/js/redirect-resources.js';

/**
* Make request to UBO repo(master), parses and returns the list of UBO redirects
Expand All @@ -201,7 +201,7 @@ async function getCurrentUBORedirects() {
let { data } = await axios.get(UBO_REDIRECTS_DIRECTORY_FILE);
console.log('Done.');

const startTrigger = 'const redirectableResources = new Map([';
const startTrigger = 'export default new Map([';
const endTrigger = ']);';

const startIndex = data.indexOf(startTrigger);
Expand Down

0 comments on commit 24e51b6

Please sign in to comment.