mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 01:10:02 +02:00
refactor: Update download.tsx to use window.navigator instead of navigator.userAgent
This commit is contained in:
parent
80fa3d1842
commit
d6d0fcf1ee
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ const releases: any = {
|
|||
};
|
||||
|
||||
function getDefaultPlatformBasedOnUserAgent() {
|
||||
const userAgent = navigator.userAgent;
|
||||
const userAgent = window.navigator.userAgent;
|
||||
if (userAgent.includes("Win")) {
|
||||
return "Windows";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue