fix: all settings being set to null or false on startup

This commit is contained in:
Jelle Glebbeek
2021-08-02 17:52:24 +02:00
parent ab82ec5ecd
commit e883cda7b3

View File

@@ -388,7 +388,7 @@ async function init() {
setUnifiedPlaylist(arg);
break;
case "setDownloadType":
$('#download-type').val(arg.type).change();
$('#download-type').val(arg.type);
break;
}
});
@@ -411,7 +411,8 @@ async function init() {
});
}
function sendSettings() {
async function sendSettings() {
await settingExists();
let settings = {
updateBinary: $('#updateBinary').prop('checked'),
updateApplication: $('#updateApplication').prop('checked'),