mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
28 lines
681 B
TypeScript
28 lines
681 B
TypeScript
export interface InAppMenuConfig {
|
|
enabled: boolean;
|
|
hideDOMWindowControls: boolean;
|
|
}
|
|
export const defaultInAppMenuConfig: InAppMenuConfig = {
|
|
enabled:
|
|
(
|
|
(
|
|
typeof window !== 'undefined' &&
|
|
!window.navigator?.userAgent?.toLowerCase().includes('mac')
|
|
) ||
|
|
(
|
|
typeof global !== 'undefined' &&
|
|
global.process?.platform !== 'darwin'
|
|
)
|
|
) && (
|
|
(
|
|
typeof window !== 'undefined' &&
|
|
!window.navigator?.userAgent?.toLowerCase().includes('linux')
|
|
) ||
|
|
(
|
|
typeof global !== 'undefined' &&
|
|
global.process?.platform !== 'linux'
|
|
)
|
|
),
|
|
hideDOMWindowControls: false,
|
|
};
|