aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-04 03:48:19 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-04 03:48:19 +0800
commita52eb813809448db4957cec5c78317419c98ddba (patch)
tree9eed7ef16440ae4d35351fc1f35fe0951b26034d /packages/website/ts/utils
parentab0055d5c68bea1dec6a4bbbe4a76822783d3a2c (diff)
downloaddexon-sol-tools-a52eb813809448db4957cec5c78317419c98ddba.tar
dexon-sol-tools-a52eb813809448db4957cec5c78317419c98ddba.tar.gz
dexon-sol-tools-a52eb813809448db4957cec5c78317419c98ddba.tar.bz2
dexon-sol-tools-a52eb813809448db4957cec5c78317419c98ddba.tar.lz
dexon-sol-tools-a52eb813809448db4957cec5c78317419c98ddba.tar.xz
dexon-sol-tools-a52eb813809448db4957cec5c78317419c98ddba.tar.zst
dexon-sol-tools-a52eb813809448db4957cec5c78317419c98ddba.zip
Rename isMobile utility fn to be more specific and add isMobileOperatingSystem
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r--packages/website/ts/utils/utils.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index e0f9d8e42..ffbf97f12 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -405,9 +405,12 @@ export const utils = {
openUrl(url: string): void {
window.open(url, '_blank');
},
- isMobile(screenWidth: ScreenWidths): boolean {
+ isMobileWidth(screenWidth: ScreenWidths): boolean {
return screenWidth === ScreenWidths.Sm;
},
+ isMobileOperatingSystem(): boolean {
+ return bowser.mobile;
+ },
getBrowserType(): BrowserType {
if (bowser.chrome) {
return BrowserType.Chrome;