Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-yan committed Nov 7, 2023
1 parent 4d6629d commit e5545b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158781,16 +158781,6 @@ function App() {
}
}
}
let exisiting = newHTMLDocument.head.getElementsByTagName("base");
if (exisiting.length > 0) {
for (let e = 0; e < exisiting.length; ++e) {
exisiting[e].setAttribute("href", prefixSubPath(currentFolder.folder + "/"));
}
} else {
let base2 = document.createElement("base");
base2.setAttribute("href", prefixSubPath(currentFolder.folder + "/"));
newHTMLDocument.head.appendChild(base2);
}
let iframeDoc = outputWindow.contentDocument;
iframeDoc.removeChild(iframeDoc.documentElement);
outputWindow.srcdoc = newHTMLDocument.documentElement.innerHTML;
Expand Down

0 comments on commit e5545b7

Please sign in to comment.