feat: Add casting capability to user_agent condition (#2480)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:12 -07:00
committed by dermotduffy
parent 261a7e1a92
commit 9eb503deff
5 changed files with 26 additions and 3 deletions
+2 -3
View File
@@ -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\//);
};