Latest Perf, Changes

This commit is contained in:
Belen Curcio
2020-11-06 16:30:08 -03:00
parent d74ffb1401
commit 2c40f61dc9
6 changed files with 37 additions and 40 deletions

View File

@@ -1,16 +0,0 @@
import * as Bowser from 'bowser'
export function isDesktop(): boolean {
const browser = Bowser.getParser(window.navigator.userAgent)
return browser.getPlatform().type === 'desktop'
}
export function isMobile(): boolean {
const browser = Bowser.getParser(window.navigator.userAgent)
return browser.getPlatform().type === 'mobile'
}
export function isTablet(): boolean {
const browser = Bowser.getParser(window.navigator.userAgent)
return browser.getPlatform().type === 'tablet'
}