better check for whether to apply default settings

This commit is contained in:
ItsVipra 2023-07-10 19:27:40 +02:00
parent 1d7f8e9e1c
commit 0cfed45ae9

View file

@ -15,7 +15,7 @@ function saveOptions(e) {
function restoreOptions() {
async function setCurrentChoice(result) {
if (Object.keys(result).length == 0) {
if (!result.statusVisibility) {
await defaultOptions();
} else {
document.querySelector("#logging").checked = result.logging || false;