1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Issue #2503 - Part 2: Add CPU IS support flags to UpdateUtils URL substitutions.

This commit is contained in:
Moonchild
2024-04-14 21:01:31 +02:00
committed by roytam1
parent 35d7a1fe5a
commit a211c7d7f3
+4 -1
View File
@@ -81,7 +81,10 @@ this.UpdateUtils = {
[/%PLATFORM_VERSION%/g, Services.appinfo.platformVersion],
[/%DISTRIBUTION%/g, distribution],
[/%DISTRIBUTION_VERSION%/g, distributionVersion],
[/%LOCALE%/g, this.Locale]
[/%LOCALE%/g, this.Locale],
[/%CPU_SSE2%/g, navigator.cpuHasSSE2],
[/%CPU_AVX%/g, navigator.cpuHasAVX],
[/%CPU_AVX2%/g, navigator.cpuHasAVX2]
];
substs.forEach(([_subst, _value]) => aUpdateURL = aUpdateURL.replace(_subst, _value));