readd js dummy function

This commit is contained in:
Vladimir Mandic
2023-07-14 16:45:27 -04:00
parent a77a6690b4
commit b1563f0ddd
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -10,6 +10,10 @@ let uiLoaded = false;
let opts_metadata = {};
const opts_tabs = {};
function rememberGallerySelection(name) {
// dummy
}
function set_theme(theme) {
const gradioURL = window.location.href;
if (!gradioURL.includes('?__theme=')) window.location.replace(`${gradioURL}?__theme=${theme}`);
+1 -1
View File
@@ -638,7 +638,7 @@ class Options:
try:
self.data_labels[key].onchange()
except Exception as e:
errors.display(e, f"changing setting {key} to {value}")
log.error(f'Error in onchange callback: {key} {value} {e}')
setattr(self, key, oldval)
return False
return True