mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +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 = {
|
||||
enabled:
|
||||
(
|
||||
(typeof window !== 'undefined' &&
|
||||
!window.navigator?.userAgent?.includes('mac')) ||
|
||||
(typeof global !== 'undefined' && global.process?.platform !== 'darwin')
|
||||
!window?.navigator?.userAgent?.includes('mac') ||
|
||||
global?.process?.platform !== 'darwin'
|
||||
) && (
|
||||
(typeof window !== 'undefined' &&
|
||||
!window.navigator?.userAgent?.includes('linux')) ||
|
||||
(typeof global !== 'undefined' && global.process?.platform !== 'linux')
|
||||
!window?.navigator?.userAgent?.includes('linux') ||
|
||||
global?.process?.platform !== 'linux'
|
||||
),
|
||||
hideDOMWindowControls: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user