Skip to content

Commit b74f1ac

Browse files
committed
[gephi desktop] macintel detection for download
1 parent 39b8fe7 commit b74f1ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/DownloadGephiDesktop.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ const DOWNLOAD_LINKS = await getDownloadLinks();
104104
if (navigator.appVersion.indexOf("Win") !== -1) {
105105
currentBrowser = "windows64";
106106
} else if (navigator.appVersion.indexOf("Mac") !== -1) {
107-
currentBrowser = "macSilicon";
107+
if (navigator.userAgent.indexOf("Intel") !== -1)
108+
currentBrowser = "macIntel"
109+
else
110+
currentBrowser = "macSilicon";
108111
} else if (navigator.userAgent.indexOf("Ubuntu") !== -1) {
109112
currentBrowser = "linux";
110113
} else if (navigator.appVersion.indexOf("X11") !== -1) {

0 commit comments

Comments
 (0)