mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 03:23:02 +00:00
better check for whether to apply default settings
This commit is contained in:
parent
1d7f8e9e1c
commit
0cfed45ae9
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ function saveOptions(e) {
|
||||||
|
|
||||||
function restoreOptions() {
|
function restoreOptions() {
|
||||||
async function setCurrentChoice(result) {
|
async function setCurrentChoice(result) {
|
||||||
if (Object.keys(result).length == 0) {
|
if (!result.statusVisibility) {
|
||||||
await defaultOptions();
|
await defaultOptions();
|
||||||
} else {
|
} else {
|
||||||
document.querySelector("#logging").checked = result.logging || false;
|
document.querySelector("#logging").checked = result.logging || false;
|
||||||
|
|
Loading…
Reference in a new issue