Gildas 7 лет назад
Родитель
Сommit
7e8f3c395b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -241,7 +241,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		constructor(options) {
 			this.options = options;
 			this.stats = new Stats(options);
-			this.baseURI = options.url;
+			this.baseURI = DomUtil.normalizeURL(options.url);
 		}
 
 		async loadPage(pageContent) {