Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
17 lines
602 B
TypeScript
17 lines
602 B
TypeScript
import { IReduxState } from '../../app/types';
|
|
|
|
/**
|
|
* Checks if Jitsi Meet is running on Spot TV.
|
|
*
|
|
* @param {IReduxState} state - The redux state.
|
|
* @returns {boolean} Whether or not Jitsi Meet is running on Spot TV.
|
|
*/
|
|
export function isSpotTV(state: IReduxState): boolean {
|
|
const { defaultLocalDisplayName, iAmSpot } = state['features/base/config'] || {};
|
|
|
|
return iAmSpot
|
|
|| navigator.userAgent.includes('JitsiSpot/') // Jitsi Spot app
|
|
|| navigator.userAgent.includes('8x8MeetingRooms/') // 8x8 Meeting Rooms app
|
|
|| defaultLocalDisplayName === 'Meeting Room';
|
|
}
|