mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-07 14:04:10 +03:00
8 lines
171 B
TypeScript
8 lines
171 B
TypeScript
|
|
import { useMemo } from "react";
|
||
|
|
|
||
|
|
export function isSafari() {
|
||
|
|
return useMemo(() => {
|
||
|
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
||
|
|
}, []);
|
||
|
|
}
|