feat: Add casting capability to user_agent condition (#2480)
This commit is contained in:
committed by
dermotduffy
parent
261a7e1a92
commit
9eb503deff
@@ -1,7 +1,6 @@
|
||||
/**
|
||||
* Determine if the card is currently being casted.
|
||||
* @returns
|
||||
*/
|
||||
export const isBeingCasted = (): boolean => {
|
||||
return !!navigator.userAgent.match(/CrKey\//);
|
||||
export const isBeingCasted = (userAgent: string = navigator.userAgent): boolean => {
|
||||
return !!userAgent.match(/CrKey\//);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user