|
@@ -153,7 +153,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
|
|
|
|
|
class Runner {
|
|
class Runner {
|
|
|
constructor(options, root) {
|
|
constructor(options, root) {
|
|
|
- const rootDocDefined = root && this.options.doc;
|
|
|
|
|
|
|
+ const rootDocDefined = root && options.doc;
|
|
|
this.root = root;
|
|
this.root = root;
|
|
|
this.options = options;
|
|
this.options = options;
|
|
|
this.options.url = this.options.url || (rootDocDefined && this.options.doc.location.href);
|
|
this.options.url = this.options.url || (rootDocDefined && this.options.doc.location.href);
|