Spaces:
Running
on
Zero
Running
on
Zero
adamelliotfields
commited on
Commit
•
88a4072
1
Parent(s):
61ad3d2
Remove HF menu outside iframe
Browse files
app.js
CHANGED
@@ -13,4 +13,11 @@
|
|
13 |
const observer = new MutationObserver(updateMenu);
|
14 |
observer.observe(menuButton, { attributes: true, attributeFilter: ["class"] });
|
15 |
updateMenu();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
|
|
13 |
const observer = new MutationObserver(updateMenu);
|
14 |
observer.observe(menuButton, { attributes: true, attributeFilter: ["class"] });
|
15 |
updateMenu();
|
16 |
+
|
17 |
+
if (window.location.hostname.endsWith(".hf.space")) {
|
18 |
+
const hfHeader = document.getElementById("huggingface-space-header");
|
19 |
+
if (hfHeader) {
|
20 |
+
hfHeader.style.display = "none";
|
21 |
+
}
|
22 |
+
}
|
23 |
}
|