We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd44b01 commit 1c35342Copy full SHA for 1c35342
htmlpreview.js
@@ -323,7 +323,7 @@
323
for (let i = 0; i < link.length; ++i) {
324
// Get absolute URL
325
href = link[i].href;
326
- if (isGitForgeFileUrl(href)) {
+ if (href != "" && isGitForgeFileUrl(href)) {
327
// Then add it to links queue and fetch using CORS proxy
328
links.push(fetchProxy(href, null, 0));
329
}
@@ -343,7 +343,7 @@
343
for (let i = 0; i < script.length; ++i) {
344
345
src = script[i].src;
346
- if (isGitForgeFileUrl(src)) {
+ if (src != "" && isGitForgeFileUrl(src)) {
347
// Then add it to scripts queue and fetch using CORS proxy
348
scripts.push(fetchProxy(src, null, 0));
349
} else {
0 commit comments