Spaces:
Running
Running
Yang Gu
commited on
Commit
·
3a2bb4b
1
Parent(s):
49106e9
Try to fix HF url again
Browse files
main.js
CHANGED
@@ -32392,7 +32392,7 @@ function setSampleIFrame(demoInfo, search = '') {
|
|
32392 |
if (filename) {
|
32393 |
const src = url || `${filename}${search}`;
|
32394 |
if (window.location.origin.includes("hf")) {
|
32395 |
-
demoContainerElem.appendChild(createElem('iframe', { `/${src}` }));
|
32396 |
} else {
|
32397 |
demoContainerElem.appendChild(createElem('iframe', { src }));
|
32398 |
}
|
|
|
32392 |
if (filename) {
|
32393 |
const src = url || `${filename}${search}`;
|
32394 |
if (window.location.origin.includes("hf")) {
|
32395 |
+
demoContainerElem.appendChild(createElem('iframe', { src: `/${src}` }));
|
32396 |
} else {
|
32397 |
demoContainerElem.appendChild(createElem('iframe', { src }));
|
32398 |
}
|