Skip to content

Commit 5264d82

Browse files
committed
Add back accidentally deleted xml parse
1 parent 900f52b commit 5264d82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rewriter/rewriter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function processFile(filename) {
9292
function loadRuleSets() {
9393
console.log("Loading rules...");
9494
var fileContents = fs.readFileSync(path.join(__dirname, '../pkg/crx/rules/default.rulesets'), 'utf8');
95+
var xml = new DOMParser().parseFromString(fileContents, 'text/xml');
9596
ruleSets = new rules.RuleSets("fake user agent", lrucache.LRUCache, {});
9697
ruleSets.addFromXml(xml);
9798
}

0 commit comments

Comments
 (0)