Chore: enable brace-style eslint check (#5159)

* eslint: enable brace-style check

* Fix jsdoc and color

* fix: correct CSS color syntax in CreateZenSliders function
This commit is contained in:
Cohee
2026-02-15 01:46:32 +02:00
committed by GitHub
parent 357da3219b
commit 4d1619ba47
62 changed files with 344 additions and 676 deletions
+4 -8
View File
@@ -68,8 +68,7 @@ async function setImageIcon() {
const sendButton = $('#send_picture .extensionsMenuExtensionButton');
sendButton.addClass('fa-image');
sendButton.removeClass('fa-hourglass-half');
}
catch (error) {
} catch (error) {
console.log(error);
}
}
@@ -82,8 +81,7 @@ async function setSpinnerIcon() {
const sendButton = $('#send_picture .extensionsMenuExtensionButton');
sendButton.removeClass('fa-image');
sendButton.addClass('fa-hourglass-half');
}
catch (error) {
} catch (error) {
console.log(error);
}
}
@@ -376,14 +374,12 @@ async function getCaptionForFile(file, prompt, quiet) {
await sendCaptionedMessage(caption, imagePath, file.type);
}
return caption;
}
catch (error) {
} catch (error) {
const errorMessage = error.message || 'Unknown error';
toastr.error(errorMessage, 'Failed to caption');
console.error(error);
return '';
}
finally {
} finally {
setImageIcon();
}
}