Skip to content

Commit

Permalink
chore: cleaning unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Apr 10, 2023
1 parent b09f9b8 commit ab08ca4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bg/utils/storage.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import { storage } from 'webextension-polyfill';

export type HostnameStatus = {
[key: string]: boolean;
};

export const KEY_DISABLED_HOSTS = 'disabled_hosts';

export let disabledHosts: string[] = await getDisabledHosts();
storage.local.onChanged.addListener((changes) => {
if (KEY_DISABLED_HOSTS in changes) {
disabledHosts = changes[KEY_DISABLED_HOSTS].newValue;
disabledHosts = changes[KEY_DISABLED_HOSTS].newValue ?? [];
}
});

Expand Down

0 comments on commit ab08ca4

Please sign in to comment.