From 7099b8129650ee694b0e383bb9fb75faf2eb37b7 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Tue, 17 Sep 2024 20:36:04 +0900 Subject: [PATCH] fix(src/index): ignore eslint error --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 982a6fee..689450a4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,6 +11,7 @@ import { shell, dialog, ipcMain, + type BrowserWindowConstructorOptions, } from 'electron'; import enhanceWebRequest, { BetterSession, @@ -56,7 +57,6 @@ import { loadI18n, setLanguage, t } from '@/i18n'; import ErrorHtmlAsset from '@assets/error.html?asset'; import type { PluginConfig } from '@/types/plugins'; -import BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions; if (!is.macOS()) { delete allPlugins['touchbar']; @@ -618,6 +618,7 @@ app.whenReady().then(async () => { shortcutDetails.target !== appLocation || shortcutDetails.appUserModelId !== appID ) { + // eslint-disable-next-line @typescript-eslint/ only-throw-error throw 'needUpdate'; } } catch (error) {