UNPKG

infobip-rtc

Version:

Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation

20 lines 545 B
import Bowser from 'bowser'; export default class Browser { constructor() { this._browser = null; } browser() { return this._browser ??= Bowser.getParser(window.navigator.userAgent); } isMobile() { let deviceOsName = this.browser().getOSName(true); return deviceOsName.includes("android") || deviceOsName.includes("ios"); } getBrowser() { return this.browser().getBrowser(); } getOS() { return this.browser().getOS(); } } //# sourceMappingURL=Browser.js.map