mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 02:51:46 +00:00
change plugin system
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
export * from './css';
|
||||
export * from './fs';
|
||||
export * from './plugin';
|
||||
export * from './types';
|
||||
export * from './fetch';
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
import is from 'electron-is';
|
||||
|
||||
import { pluginBuilders } from 'virtual:PluginBuilders';
|
||||
|
||||
export const getAvailablePluginNames = () => {
|
||||
return Object.keys(pluginBuilders)
|
||||
.sort()
|
||||
.filter((id) => {
|
||||
if (is.windows() && id === 'touchbar') {
|
||||
return false;
|
||||
} else if (is.macOS() && id === 'taskbar-mediacontrol') {
|
||||
return false;
|
||||
} else if (is.linux() && (id === 'taskbar-mediacontrol' || id === 'touchbar')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user