Rename things, add comments

This commit is contained in:
binwiederhier
2023-06-10 20:42:02 -04:00
parent 1abcc88fce
commit 9d5556c7f5
4 changed files with 30 additions and 24 deletions

View File

@@ -33,8 +33,8 @@ class Prefs {
}
async webPushEnabled() {
const obj = await this.db.prefs.get("webPushEnabled");
return obj?.value ?? false;
const webPushEnabled = await this.db.prefs.get("webPushEnabled");
return webPushEnabled?.value ?? false;
}
async setWebPushEnabled(enabled) {