[www-doc] [Git][VideoLAN.org/websites][master] macOS detection: Fix javascript

David gitlab at videolan.org
Mon Jan 18 13:18:41 UTC 2021



David pushed to branch master at VideoLAN organization / websites


Commits:
a64e72b5 by David Fuhrmann at 2021-01-18T14:18:21+01:00
macOS detection: Fix javascript

- - - - -


1 changed file:

- www.videolan.org/include/os-specific.php


Changes:

=====================================
www.videolan.org/include/os-specific.php
=====================================
@@ -84,7 +84,7 @@ function replaceDLinfos( $downloadButton = "#downloadButton" )
           } else {
               var glcontext = document.createElement("canvas").getContext("webgl");
               var debugrenderer = glcontext.getExtension('WEBGL_debug_renderer_info');
-              var renderername = debugrenderer && glcontext.getParameter(d.UNMASKED_RENDERER_WEBGL) || "";
+              var renderername = debugrenderer && glcontext.getParameter(debugrenderer.UNMASKED_RENDERER_WEBGL) || "";
               if (renderername.match(/Apple/) && !renderername.match(/Apple GPU/)) {
                   OS="osxarm64";
               } else {



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/a64e72b54140bc4c5078d9552e044b890f5f0a3f

-- 
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/a64e72b54140bc4c5078d9552e044b890f5f0a3f
You're receiving this email because of your account on code.videolan.org.




More information about the www-doc mailing list