mirror of https://github.com/gorhill/uBlock.git
Fix test.js following changes in API
This commit is contained in:
parent
9fc361c84f
commit
8c48375caf
|
@ -32,7 +32,7 @@ import {
|
|||
enableWASM,
|
||||
FilteringContext,
|
||||
pslInit,
|
||||
restart,
|
||||
useRawLists,
|
||||
} from './index.js';
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -60,7 +60,7 @@ function fetch(listName) {
|
|||
fetch('easylist'),
|
||||
fetch('easyprivacy'),
|
||||
]).then(rawLists => {
|
||||
return restart([
|
||||
return useRawLists([
|
||||
{ name: 'easylist', raw: rawLists[0] },
|
||||
{ name: 'easyprivacy', raw: rawLists[1] },
|
||||
]);
|
||||
|
@ -94,9 +94,6 @@ function fetch(listName) {
|
|||
console.log(snfe.toLogData());
|
||||
}
|
||||
|
||||
// Remove all filters
|
||||
restart();
|
||||
|
||||
process.exit();
|
||||
})();
|
||||
|
||||
|
|
Loading…
Reference in New Issue