diff --git a/scripts/prepare.ts b/scripts/prepare.ts index 5c78c0cb..edce3e76 100644 --- a/scripts/prepare.ts +++ b/scripts/prepare.ts @@ -9,7 +9,6 @@ import { r, port, isDev, log } from './utils' */ async function stubIndexHtml() { const views = [ - 'options', 'popup', 'background', ] diff --git a/src/background/main.ts b/src/background/main.ts index 5691cbd6..a25cf11b 100644 --- a/src/background/main.ts +++ b/src/background/main.ts @@ -9,7 +9,6 @@ if (import.meta.hot) { import('./contentScriptHMR') } -// タイトルの重複する削除した履歴を返す const removeDuplicates = (histories: History.HistoryItem[]) => { return Array.from( histories @@ -21,7 +20,7 @@ const removeDuplicates = (histories: History.HistoryItem[]) => { ) } -const addHost = (histories: History.HistoryItem[]) => { +const addHostname = (histories: History.HistoryItem[]) => { return histories.map((item) => { const url = new URL(item.url!) return { @@ -44,7 +43,7 @@ browser.commands.onCommand.addListener(async() => { await sendMessage( 'history-search', - { result: JSON.stringify(addHost(removeDuplicates(result))) }, + { result: JSON.stringify(addHostname(removeDuplicates(result))) }, { context: 'content-script', tabId: tab.id!, diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index e666f572..1ecee062 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -2,7 +2,7 @@