X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Fua-detect.js;h=6b972cb914b6b27e610027c19ee18a0d38f0860a;hb=dfb477380c1c9118d4e2361ecd26ceedfdb10098;hp=315046ce5fb69dc0218746882603ebd0a2096226;hpb=aae813df48deaa4464def8294f7aae51b5ca4fd0;p=webi-installers%2F.git diff --git a/_webi/ua-detect.js b/_webi/ua-detect.js index 315046c..6b972cb 100644 --- a/_webi/ua-detect.js +++ b/_webi/ua-detect.js @@ -57,7 +57,7 @@ function getArch(ua) { // quick hack for Apple Silicon M1 // Native: Darwin boomer.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101 arm64 // Resetta: Darwin boomer.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101 x86_64 - ua = ua.replace(/xnu-.*RELEASE_[^\s]*/, '') + ua = ua.replace(/xnu-.*RELEASE_[^\s]*/, ''); if (/aarch64|arm64|arm8|armv8/i.test(ua)) { return 'arm64'; } else if (/aarch|arm7|armv7/i.test(ua)) {