From c5650518fab2c954af5103b3a1f2f3051731b280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 28 Apr 2021 10:34:17 +0300 Subject: [PATCH] android, ios check --- src/components/utils/DomHandler.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/utils/DomHandler.js b/src/components/utils/DomHandler.js index 19e663b53..a86eaefdd 100755 --- a/src/components/utils/DomHandler.js +++ b/src/components/utils/DomHandler.js @@ -491,4 +491,12 @@ export default class DomHandler { } } } + + static isIOS() { + return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream']; + } + + static isAndroid() { + return /(android)/i.test(navigator.userAgent); + } }