mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
fix(in-app-menu): simplified if-statement
This commit is contained in:
@ -5,13 +5,11 @@ export interface InAppMenuConfig {
|
|||||||
export const defaultInAppMenuConfig: InAppMenuConfig = {
|
export const defaultInAppMenuConfig: InAppMenuConfig = {
|
||||||
enabled:
|
enabled:
|
||||||
(
|
(
|
||||||
(typeof window !== 'undefined' &&
|
!window?.navigator?.userAgent?.includes('mac') ||
|
||||||
!window.navigator?.userAgent?.includes('mac')) ||
|
global?.process?.platform !== 'darwin'
|
||||||
(typeof global !== 'undefined' && global.process?.platform !== 'darwin')
|
|
||||||
) && (
|
) && (
|
||||||
(typeof window !== 'undefined' &&
|
!window?.navigator?.userAgent?.includes('linux') ||
|
||||||
!window.navigator?.userAgent?.includes('linux')) ||
|
global?.process?.platform !== 'linux'
|
||||||
(typeof global !== 'undefined' && global.process?.platform !== 'linux')
|
|
||||||
),
|
),
|
||||||
hideDOMWindowControls: false,
|
hideDOMWindowControls: false,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user