Edit settings.js

Added formal panics for invalid JSON.
pull/5368/head
RichDavis1 2022-01-14 20:35:38 -06:00 committed by Richard Hansen
parent 578ae17aa8
commit ae9114f140
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ $(document).ready(() => {
$('.settings').focus();
$('.settings').autosize();
} else {
alert('YOUR JSON IS BAD AND YOU SHOULD FEEL BAD');
alert('Invalid JSON');
}
});
@ -39,7 +39,7 @@ $(document).ready(() => {
// JSON is clean so emit it to the server
socket.emit('saveSettings', $('.settings').val());
} else {
alert('YOUR JSON IS BAD AND YOU SHOULD FEEL BAD');
alert('Invalid JSON');
$('.settings').focus();
}
});