From 2d23b4a70c51d44a3afc12d88a1296d3f9e40ead Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 19 Jan 2022 12:55:48 +0530 Subject: [PATCH] add logic to prevent opera and MSStream undefined errors --- src/utils/common/deviceDetection.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/common/deviceDetection.ts b/src/utils/common/deviceDetection.ts index 795a429a2..5f8209344 100644 --- a/src/utils/common/deviceDetection.ts +++ b/src/utils/common/deviceDetection.ts @@ -5,6 +5,13 @@ export enum OS { UNKNOWN = 'unknown', } +declare global { + interface Window { + opera: any; + MSStream: any; + } +} + const GetDeviceOS = () => { let userAgent = ''; if (