mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 20:31:46 +00:00
fix(src/index): ignore eslint error
This commit is contained in:
@ -11,6 +11,7 @@ import {
|
|||||||
shell,
|
shell,
|
||||||
dialog,
|
dialog,
|
||||||
ipcMain,
|
ipcMain,
|
||||||
|
type BrowserWindowConstructorOptions,
|
||||||
} from 'electron';
|
} from 'electron';
|
||||||
import enhanceWebRequest, {
|
import enhanceWebRequest, {
|
||||||
BetterSession,
|
BetterSession,
|
||||||
@ -56,7 +57,6 @@ import { loadI18n, setLanguage, t } from '@/i18n';
|
|||||||
import ErrorHtmlAsset from '@assets/error.html?asset';
|
import ErrorHtmlAsset from '@assets/error.html?asset';
|
||||||
|
|
||||||
import type { PluginConfig } from '@/types/plugins';
|
import type { PluginConfig } from '@/types/plugins';
|
||||||
import BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
||||||
|
|
||||||
if (!is.macOS()) {
|
if (!is.macOS()) {
|
||||||
delete allPlugins['touchbar'];
|
delete allPlugins['touchbar'];
|
||||||
@ -618,6 +618,7 @@ app.whenReady().then(async () => {
|
|||||||
shortcutDetails.target !== appLocation ||
|
shortcutDetails.target !== appLocation ||
|
||||||
shortcutDetails.appUserModelId !== appID
|
shortcutDetails.appUserModelId !== appID
|
||||||
) {
|
) {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ only-throw-error
|
||||||
throw 'needUpdate';
|
throw 'needUpdate';
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user