add logic to prevent opera and MSStream undefined errors

This commit is contained in:
Abhinav 2022-01-19 12:55:48 +05:30
parent a648695e44
commit 2d23b4a70c

View file

@ -5,6 +5,13 @@ export enum OS {
UNKNOWN = 'unknown',
}
declare global {
interface Window {
opera: any;
MSStream: any;
}
}
const GetDeviceOS = () => {
let userAgent = '';
if (