ITADN

When using Safari 18.2, glicol.org sends an alert

#185Openkarlcow 创建于 2025-02-03
K
karlcowcommented
Steps to reproduce: 1. https://glicol.org/ in Safari 2. See “use Chrome” alert, then dismiss it. 3. Play around with the demos. Seems to work great in Safari. Results: Despite the up front claim, appears to work fine in Safari. The alert message is based on this code in https://glicol.org/assets/index.82145a34.js `function e1(r) {}` which does user agent sniffing. ``` c = l.split("Version/")[1].split(" ")[0]), { name: u, version: parseFloat(c) } ``` Which returns ``` { name: “Safari”, Version: 18.2} ``` Then we get into the alert message path which is a bit strange: ``` l === "Safari" ? u < 14.1 ? alert(Your Safari version is ${u} but it needs to be at least 14.1 to run the audio engine of Glicol. Please upgrade, or use latest Google Chrome / Firefox instead.) : alert("Please use Chrome on your Mac to get the best performance of Glicol audio engine.") ``` * If you under 14.1 you need to upgrade Safari or use Chrome or Firefox * If you are above or equal 14.1, you are recommended to use Chrome. * Would it be possible to understand which kind of performance issues, the site has encountered with Safari? * Are there specific handy tests to test these issues? This is also tracked at Apple by rdar://142903554
3 条评论