diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-19 19:25:31 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-19 19:25:31 +0800 |
commit | 724f3b9cf7fb3a740d56e28c5375665b944919f3 (patch) | |
tree | d3779616b0afba689fa7e4449f26c5dfa7c70e1d /packages/website/ts/utils | |
parent | a7a17c85dce26c8384165b821f0bf60ce531b987 (diff) | |
download | dexon-sol-tools-724f3b9cf7fb3a740d56e28c5375665b944919f3.tar.gz 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')
-rw-r--r-- | packages/website/ts/utils/utils.ts | 4 |
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; } |