From 6d622da43a97271571ac67e13d31c4f08b69b3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 11 Feb 2024 21:37:08 +0100 Subject: [PATCH] Avoid potential compatibility issue with -moz-prefixed transforms. See discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1879746 I don't know how to regenerate turn.min.js, help there would be appreciated. --- turn.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/turn.js b/turn.js index d6feac9..b0fbd4c 100644 --- a/turn.js +++ b/turn.js @@ -180,6 +180,9 @@ var has3d, len = vendorPrefixes.length, vendor = ''; + if ('transform' in document.body.style) + return vendor; + while (len--) if ((vendorPrefixes[len] + 'Transform') in document.body.style) vendor='-'+vendorPrefixes[len].toLowerCase()+'-';