From 4587e32940ccd7888e6a0ccd8351d0e81a7c4424 Mon Sep 17 00:00:00 2001 From: omegaee <2955281552@qq.com> Date: Mon, 16 Dec 2024 22:28:50 +0800 Subject: [PATCH] ignore error --- src/message/runtime.ts | 12 ++++++------ src/message/tabs.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/message/runtime.ts b/src/message/runtime.ts index 742f963..c57346d 100644 --- a/src/message/runtime.ts +++ b/src/message/runtime.ts @@ -7,7 +7,7 @@ export const msgSetConfig = (config: DeepPartial) => { return chrome.runtime.sendMessage({ type: RuntimeMsg.SetConfig, config, - }).catch(() => { }) + }) } /** @@ -16,7 +16,7 @@ export const msgSetConfig = (config: DeepPartial) => { export const msgGetNotice = (tabId: number, host: string) => { return chrome.runtime.sendMessage({ type: RuntimeMsg.GetNotice, tabId, host, - }).catch(() => { }) + }) } /** @@ -26,7 +26,7 @@ export const msgSetHookRecords = (hookRecords: Partial({ type: RuntimeMsg.SetHookRecords, data: hookRecords, - }).catch(() => { }) + }) } /** @@ -37,7 +37,7 @@ export const msgAddWhiteList = (host: string | string[]) => { type: RuntimeMsg.UpdateWhitelist, mode: 'add', host, - }).catch(() => { }) + }) } /** @@ -48,11 +48,11 @@ export const msgDelWhiteList = (host: string) => { type: RuntimeMsg.UpdateWhitelist, mode: 'del', host, - }).catch(() => { }) + }) } export const msgGetNewVersion = () => { return chrome.runtime.sendMessage({ type: RuntimeMsg.GetNewVersion, - }).catch(() => { }) + }) } \ No newline at end of file diff --git a/src/message/tabs.ts b/src/message/tabs.ts index de99d6a..9bc1e22 100644 --- a/src/message/tabs.ts +++ b/src/message/tabs.ts @@ -7,5 +7,5 @@ export const tabChangeWhitelist = (tabId: number, mode: ChangeScriptWhitelistReq return chrome.tabs.sendMessage(tabId, { type: RuntimeMsg.ChangeScriptWhitelist, mode, - }).catch(() => { }) + }) } \ No newline at end of file