From c84ea257d5508ff5173db632e6cf11a56eba2bb3 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Tue, 16 Jan 2024 17:14:02 +0900 Subject: [PATCH] fix: os-specific plugin --- src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.ts b/src/index.ts index f72686a6..2a1a1268 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,