fix: os-specific plugin

This commit is contained in:
JellyBrick
2024-01-16 17:14:02 +09:00
parent 6512f5ad2a
commit c84ea257d5

View File

@ -55,6 +55,13 @@ import { loadI18n, setLanguage, t } from '@/i18n';
import type { PluginConfig } from '@/types/plugins';
if (!is.macOS()) {
delete allPlugins['touchbar'];
}
if (!is.windows()) {
delete allPlugins['taskbar-mediacontrol'];
}
// Catch errors and log them
unhandled({
logger: console.error,