add logic to prevent opera and MSStream undefined errors
This commit is contained in:
parent
a648695e44
commit
2d23b4a70c
|
@ -5,6 +5,13 @@ export enum OS {
|
|||
UNKNOWN = 'unknown',
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
opera: any;
|
||||
MSStream: any;
|
||||
}
|
||||
}
|
||||
|
||||
const GetDeviceOS = () => {
|
||||
let userAgent = '';
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue