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() {
|
function getDefaultPlatformBasedOnUserAgent() {
|
||||||
const userAgent = navigator.userAgent;
|
const userAgent = window.navigator.userAgent;
|
||||||
if (userAgent.includes("Win")) {
|
if (userAgent.includes("Win")) {
|
||||||
return "Windows";
|
return "Windows";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user