android, ios check

pull/1227/head
Tuğçe Küçükoğlu 2021-04-28 10:34:17 +03:00
parent 04d276bd74
commit c5650518fa
1 changed files with 8 additions and 0 deletions

View File

@ -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);
}
}