From 9dc509ffaa1b8d55c9203a3976e756ecca572b07 Mon Sep 17 00:00:00 2001 From: erosman Date: Sat, 21 Oct 2023 20:11:19 +0330 Subject: [PATCH] Add files via upload --- src/content/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/app.js b/src/content/app.js index f789ed2..bc6346f 100644 --- a/src/content/app.js +++ b/src/content/app.js @@ -29,6 +29,10 @@ export class App { // ---------- User Preference ---------------------------- static defaultPref = JSON.stringify(pref); + static getDefaultPref() { + return JSON.parse(this.defaultPref); + } + static getPref() { // update pref with the saved version return browser.storage.local.get().then(result => { @@ -36,10 +40,6 @@ export class App { }); } - static getDefaultPref() { - return JSON.parse(this.defaultPref); - } - // ---------- Helper functions --------------------------- // https://bugs.chromium.org/p/chromium/issues/detail?id=478654 // Add support for SVG images in Web Notifications API -> CH107