refactor: Update download.tsx to use window.navigator instead of navigator.userAgent
This commit is contained in:
@@ -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