This commit is contained in:
lllyasviel
2023-11-15 08:22:24 -08:00
parent 608fe3962c
commit ab528b78cf
5 changed files with 18 additions and 1 deletions
+7
View File
@@ -166,3 +166,10 @@ function uiElementInSight(el) {
function playNotification() {
gradioApp().querySelector('#audio_notification audio')?.play();
}
function set_theme(theme) {
var gradioURL = window.location.href;
if (!gradioURL.includes('?__theme=')) {
window.location.replace(gradioURL + '?__theme=' + theme);
}
}