1
0
forked from um/web

Change Browser Tips Condition

This commit is contained in:
MengYX 2020-04-08 22:47:38 +08:00
parent 29c27bbfd9
commit 77d9ca4ba8
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

View File

@ -22,7 +22,7 @@
<div id="loader"></div> <div id="loader"></div>
<noscript> <noscript>
<img alt="" <img alt=""
src="https://stats.ixarea.com/ixarea-stats/report?idsite=2&rec=1&action_name=音乐解锁+-+By+IXarea" src="https://stats.ixarea.com/ixarea-stats/report?rec=1&action_name=音乐解锁-NoJS&idsite=2"
style="border:0"/> style="border:0"/>
</noscript> </noscript>
<div hidden id="loader-tips-outdated"> <div hidden id="loader-tips-outdated">
@ -53,12 +53,12 @@
var m; var m;
if (!ua) return true; if (!ua) return true;
if (/MSIE |Trident\//.exec(ua)) return true; // no IE if (/MSIE |Trident\//.exec(ua)) return true; // no IE
m = /Edge\/([\d.]+)/.exec(ua); // Edge >= 16 m = /Edge\/([\d.]+)/.exec(ua); // Edge >= 17
if (m && Number(m[1]) < 16) return true; if (m && Number(m[1]) < 17) return true;
m = /Chrome\/([\d.]+)/.exec(ua); // Chrome >= 50 m = /Chrome\/([\d.]+)/.exec(ua); // Chrome >= 58
if (m && Number(m[1]) < 50) return true; if (m && Number(m[1]) < 58) return true;
m = /Firefox\/([\d.]+)/.exec(ua); // Firefox >= 38 m = /Firefox\/([\d.]+)/.exec(ua); // Firefox >= 45
return m && Number(m[1]) < 38; return m && Number(m[1]) < 45;
})(); })();
if (detected) { if (detected) {
document.getElementById('loader-tips-outdated').hidden = false; document.getElementById('loader-tips-outdated').hidden = false;