|
|
@@ -143,7 +143,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
constructor(options, root) {
|
|
|
this.root = root;
|
|
|
this.options = options;
|
|
|
- this.options.url = this.options.url || this.options.doc.location.href;
|
|
|
+ this.options.url = this.options.url || (this.options.doc && this.options.doc.location.href);
|
|
|
this.options.baseURI = this.options.doc && this.options.doc.baseURI;
|
|
|
this.batchRequest = new BatchRequest();
|
|
|
this.processor = new Processor(options, this.batchRequest);
|