mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix eslint warning
This commit is contained in:
@ -48,7 +48,7 @@ import {
|
|||||||
loadAllMainPlugins,
|
loadAllMainPlugins,
|
||||||
} from '@/loader/main';
|
} from '@/loader/main';
|
||||||
|
|
||||||
import type { PluginConfig, PluginDef } from '@/types/plugins';
|
import type { PluginConfig } from '@/types/plugins';
|
||||||
|
|
||||||
// Catch errors and log them
|
// Catch errors and log them
|
||||||
unhandled({
|
unhandled({
|
||||||
@ -160,7 +160,7 @@ const initHook = (win: BrowserWindow) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const mainPlugin = getAllLoadedMainPlugins()[id] as PluginDef<unknown, unknown, unknown>;
|
const mainPlugin = getAllLoadedMainPlugins()[id];
|
||||||
if (mainPlugin) {
|
if (mainPlugin) {
|
||||||
if (config.enabled && typeof mainPlugin.backend !== 'function') {
|
if (config.enabled && typeof mainPlugin.backend !== 'function') {
|
||||||
mainPlugin.backend?.onConfigChange?.(config);
|
mainPlugin.backend?.onConfigChange?.(config);
|
||||||
|
|||||||
Reference in New Issue
Block a user