Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
fix: loading settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sentialx committed Aug 4, 2019
1 parent c8046a2 commit e1b0a30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/background/user-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { isURLMatched } from "../utils/url";
import { UserSettings } from "../definitions";

export default class UserStorage {
constructor() {
this.settings = null;
}

settings: Readonly<UserSettings> = {
enabled: false,
theme: {
Expand All @@ -29,6 +25,7 @@ export default class UserStorage {
}

set($settings: Partial<UserSettings>) {
console.log($settings);
if ($settings.siteList) {
if (!Array.isArray($settings.siteList)) {
const list = [];
Expand Down

0 comments on commit e1b0a30

Please sign in to comment.