mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
feat: rename plugins to clarify context (#1392)
This commit is contained in:
@ -4,7 +4,7 @@ import is from 'electron-is';
|
||||
import config from './config';
|
||||
|
||||
// eslint-disable-next-line import/order
|
||||
import { pluginList as preloadPluginList } from 'virtual:PreloadPlugins';
|
||||
import { preloadPlugins } from 'virtual:PreloadPlugins';
|
||||
|
||||
import type { ConfigType, OneOfDefaultConfigKey } from './config/dynamic';
|
||||
|
||||
@ -19,8 +19,8 @@ export type PluginMapper<Type extends 'renderer' | 'preload' | 'backend'> = {
|
||||
const enabledPluginNameAndOptions = config.plugins.getEnabled();
|
||||
|
||||
enabledPluginNameAndOptions.forEach(async ([plugin, options]) => {
|
||||
if (Object.hasOwn(preloadPluginList, plugin)) {
|
||||
const handler = preloadPluginList[plugin];
|
||||
if (Object.hasOwn(preloadPlugins, plugin)) {
|
||||
const handler = preloadPlugins[plugin];
|
||||
try {
|
||||
await handler?.(options);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user