refactor: Update download.tsx to use window.navigator instead of navigator.userAgent
This commit is contained in:
1 parent
80fa3d1842
commit
d6d0fcf1ee
1 file changed
+1
-1
@@ -18,7 +18,7 @@ const releases: any = {
|
||||
};
|
||||
|
||||
function getDefaultPlatformBasedOnUserAgent() {
|
||||
const userAgent = navigator.userAgent;
|
||||
const userAgent = window.navigator.userAgent;
|
||||
if (userAgent.includes("Win")) {
|
||||
return "Windows";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user