Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
erosman authored Oct 21, 2023
1 parent 5e43454 commit 9dc509f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ 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 => {
Object.keys(result).forEach(i => pref[i] = result[i]);
});
}

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
Expand Down

0 comments on commit 9dc509f

Please sign in to comment.