+2
-7
@@ -7,15 +7,10 @@ export function isPWA() {
|
||||
}
|
||||
|
||||
export function isIphone() {
|
||||
return (
|
||||
/iPhone/.test(navigator.userAgent) &&
|
||||
!(window as unknown as { MSStream?: any }).MSStream
|
||||
);
|
||||
return /iPhone/.test(navigator.userAgent) && !(window as any).MSStream;
|
||||
}
|
||||
|
||||
export function dropdownTriggerer(
|
||||
e: React.FocusEvent<HTMLElement> | React.MouseEvent<HTMLElement>
|
||||
) {
|
||||
export function dropdownTriggerer(e: any) {
|
||||
let targetEl = e.currentTarget;
|
||||
if (targetEl && targetEl.matches(":focus")) {
|
||||
setTimeout(function () {
|
||||
|
||||
Reference in New Issue
Block a user