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

Commit e1b0a30

Browse files
committed
fix: loading settings
1 parent c8046a2 commit e1b0a30

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/background/user-storage.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { isURLMatched } from "../utils/url";
33
import { UserSettings } from "../definitions";
44

55
export default class UserStorage {
6-
constructor() {
7-
this.settings = null;
8-
}
9-
106
settings: Readonly<UserSettings> = {
117
enabled: false,
128
theme: {
@@ -29,6 +25,7 @@ export default class UserStorage {
2925
}
3026

3127
set($settings: Partial<UserSettings>) {
28+
console.log($settings);
3229
if ($settings.siteList) {
3330
if (!Array.isArray($settings.siteList)) {
3431
const list = [];

0 commit comments

Comments
 (0)