diff --git a/src/js/contentscript-extra.js b/src/js/contentscript-extra.js index 20399be96..5c43d721d 100644 --- a/src/js/contentscript-extra.js +++ b/src/js/contentscript-extra.js @@ -334,7 +334,7 @@ class PSelector { ]); } this.raw = o.raw; - this.selector = ':root > :root'; + this.selector = o.selector; this.tasks = []; const tasks = []; if ( Array.isArray(o.tasks) === false ) { return; } @@ -344,7 +344,6 @@ class PSelector { tasks.push(new ctor(task)); } // Initialize only after all tasks have been successfully instantiated - this.selector = o.selector; this.tasks = tasks; } prime(input) {