Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Apr 22, 2023
1 parent e6becf2 commit 8bfc5c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/options/options.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { storage } from 'webextension-polyfill';
import { KEY_DISABLED_HOSTS, disabledHosts, getHostname, invertHostState } from '../bg/utils/storage';
import {
KEY_DISABLED_HOSTS,
disabledHosts,
getHostname,
invertHostState,
} from '../bg/utils/storage';

const table = document.querySelector('.table')!;

Expand All @@ -12,7 +17,7 @@ async function addEntry() {
const search = new URLSearchParams(document.location.search);
let hostname = search.get('hostname');
if (hostname === null) return;

hostname = getHostname(hostname);
if (disabledHosts.includes(hostname)) return;

Expand Down

0 comments on commit 8bfc5c7

Please sign in to comment.