mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Enable no-undef lint
I'm not sure where run_edit is supposed to go or if any logic is missing. I just made my best guess.
This commit is contained in:
@@ -54,7 +54,6 @@ module.exports = {
|
|||||||
'no-control-regex': 'off',
|
'no-control-regex': 'off',
|
||||||
'no-async-promise-executor': 'off',
|
'no-async-promise-executor': 'off',
|
||||||
'no-inner-declarations': 'off',
|
'no-inner-declarations': 'off',
|
||||||
'no-undef': 'off',
|
|
||||||
'require-yield': 'off',
|
'require-yield': 'off',
|
||||||
'no-constant-condition': ['error', {checkLoops: false}]
|
'no-constant-condition': ['error', {checkLoops: false}]
|
||||||
}
|
}
|
||||||
|
@@ -8569,6 +8569,7 @@ jQuery(async function () {
|
|||||||
if (this_edit_mes_id !== undefined) {
|
if (this_edit_mes_id !== undefined) {
|
||||||
let mes_edited = $(`#chat [mesid="${this_edit_mes_id}"]`).find(".mes_edit_done");
|
let mes_edited = $(`#chat [mesid="${this_edit_mes_id}"]`).find(".mes_edit_done");
|
||||||
if (Number(edit_mes_id) == count_view_mes - 1) { //if the generating swipe (...)
|
if (Number(edit_mes_id) == count_view_mes - 1) { //if the generating swipe (...)
|
||||||
|
let run_edit = true;
|
||||||
if (chat[edit_mes_id]['swipe_id'] !== undefined) {
|
if (chat[edit_mes_id]['swipe_id'] !== undefined) {
|
||||||
if (chat[edit_mes_id]['swipes'].length === chat[edit_mes_id]['swipe_id']) {
|
if (chat[edit_mes_id]['swipes'].length === chat[edit_mes_id]['swipe_id']) {
|
||||||
run_edit = false;
|
run_edit = false;
|
||||||
|
@@ -191,7 +191,7 @@ class SystemTtsProvider {
|
|||||||
const voice = speechSynthesis.getVoices().find(x => x.voiceURI === voiceId);
|
const voice = speechSynthesis.getVoices().find(x => x.voiceURI === voiceId);
|
||||||
|
|
||||||
if (!voice) {
|
if (!voice) {
|
||||||
throw `TTS Voice name ${voiceName} not found`
|
throw `TTS Voice id ${voiceId} not found`
|
||||||
}
|
}
|
||||||
|
|
||||||
speechSynthesis.cancel();
|
speechSynthesis.cancel();
|
||||||
|
Reference in New Issue
Block a user