mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
feat(refactor): PluginDefinition::platform (#3665)
This commit is contained in:
@ -14,11 +14,13 @@ import registerCallback, {
|
||||
} from '@/providers/song-info';
|
||||
import { mediaIcons } from '@/types/media-icons';
|
||||
import { t } from '@/i18n';
|
||||
import { Platform } from '@/types/plugins';
|
||||
|
||||
export default createPlugin({
|
||||
name: () => t('plugins.taskbar-mediacontrol.name'),
|
||||
description: () => t('plugins.taskbar-mediacontrol.description'),
|
||||
restartNeeded: true,
|
||||
platform: Platform.Windows,
|
||||
config: {
|
||||
enabled: false,
|
||||
},
|
||||
|
||||
@ -6,11 +6,13 @@ import registerCallback, { SongInfoEvent } from '@/providers/song-info';
|
||||
import { t } from '@/i18n';
|
||||
|
||||
import youtubeMusicIcon from '@assets/youtube-music.png?asset&asarUnpack';
|
||||
import { Platform } from '@/types/plugins';
|
||||
|
||||
export default createPlugin({
|
||||
name: () => t('plugins.touchbar.name'),
|
||||
description: () => t('plugins.touchbar.description'),
|
||||
restartNeeded: true,
|
||||
platform: Platform.macOS,
|
||||
config: {
|
||||
enabled: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user