aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils/utils.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-19 19:25:31 +0800
committerFabio Berger <me@fabioberger.com>2018-10-19 19:25:31 +0800
commit724f3b9cf7fb3a740d56e28c5375665b944919f3 (patch)
treed3779616b0afba689fa7e4449f26c5dfa7c70e1d /packages/website/ts/utils/utils.ts
parenta7a17c85dce26c8384165b821f0bf60ce531b987 (diff)
downloaddexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.tar
dexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.tar.gz
dexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.tar.bz2
dexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.tar.lz
dexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.tar.xz
dexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.tar.zst
dexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.zip
Improve sidebar logic to handle MS Edge, Firefox differences between Windows & Mac
Diffstat (limited to 'packages/website/ts/utils/utils.ts')
-rw-r--r--packages/website/ts/utils/utils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index d4ad5f611..87aa48018 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -413,6 +413,10 @@ export const utils = {
return BrowserType.Firefox;
} else if (bowser.opera) {
return BrowserType.Opera;
+ } else if (bowser.msedge) {
+ return BrowserType.Edge;
+ } else if (bowser.safari) {
+ return BrowserType.Safari;
} else {
return BrowserType.Other;
}