Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -312,7 +312,10 @@ js_code = """
|
|
312 |
captcha.async = true;
|
313 |
captcha.defer = true;
|
314 |
document.head.appendChild(captcha);
|
315 |
-
if (window.self !== window.top)
|
|
|
|
|
|
|
316 |
const discord_webhook = getStorage('discord_webhook')
|
317 |
return [discord_webhook];
|
318 |
})
|
@@ -325,10 +328,15 @@ css = """
|
|
325 |
}
|
326 |
footer {visibility: hidden}
|
327 |
|
328 |
-
body.dark {
|
329 |
background-color: #111113;
|
330 |
--body-background-fill: #111113;
|
331 |
}
|
|
|
|
|
|
|
|
|
|
|
332 |
"""
|
333 |
|
334 |
recaptcha_html = (
|
|
|
312 |
captcha.async = true;
|
313 |
captcha.defer = true;
|
314 |
document.head.appendChild(captcha);
|
315 |
+
if (window.self !== window.top) {
|
316 |
+
document.getElementById('invariant-header').style.display = 'none';
|
317 |
+
document.body.classList.add("invariant")
|
318 |
+
}
|
319 |
const discord_webhook = getStorage('discord_webhook')
|
320 |
return [discord_webhook];
|
321 |
})
|
|
|
328 |
}
|
329 |
footer {visibility: hidden}
|
330 |
|
331 |
+
body.invariant.dark {
|
332 |
background-color: #111113;
|
333 |
--body-background-fill: #111113;
|
334 |
}
|
335 |
+
|
336 |
+
body.invariant:not(.dark) {
|
337 |
+
background-color: white;
|
338 |
+
--body-background-fill: white;
|
339 |
+
}
|
340 |
"""
|
341 |
|
342 |
recaptcha_html = (
|