mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-03-11 16:20:09 +00:00
Merge pull request #101 from stysmmaker/fix/apply-settings-button-fallback
Add fallback to applySettingsButton variable
This commit is contained in:
@@ -1059,7 +1059,10 @@ async function setup() {
|
||||
let textAreas = getTextAreas();
|
||||
|
||||
// Add event listener to apply settings button so we can mirror the changes to our internal config
|
||||
let applySettingsButton = gradioApp().querySelector("#tab_settings > div > .gr-button-primary");
|
||||
let applySettingsButton = (
|
||||
gradioApp().querySelector("#tab_settings > div > .gr-button-primary") ||
|
||||
gradioApp().querySelector("#tab_settings > div > div > #settings_submit")
|
||||
);
|
||||
applySettingsButton.addEventListener("click", () => {
|
||||
// Wait 500ms to make sure the settings have been applied to the webui opts object
|
||||
setTimeout(async () => {
|
||||
@@ -1158,4 +1161,4 @@ onUiUpdate(async () => {
|
||||
await syncOptions();
|
||||
// Rest of setup
|
||||
setup();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user