aarch64 bugfix and minor formatting updates
[webi-installers/.git] / _webi / ua-detect.js
index c0483cb2ee6904c3cb47e65ac68f992d1d77ca0f..74916773f57555bc62727c77e01911830f6b08e7 100644 (file)
@@ -54,9 +54,9 @@ function getArch(ua) {
     return '-';
   }
 
-  if (/arm64|arm8|armv8/i.test(ua)) {
+  if (/aarch64|arm64|arm8|armv8/i.test(ua)) {
     return 'arm64';
-  } else if (/arm7|armv7/i.test(ua)) {
+  } else if (/aarch|arm7|armv7/i.test(ua)) {
     return 'armv7l';
   } else if (/arm6|armv6/i.test(ua)) {
     return 'armv6l';