diff --git a/public/index.html b/public/index.html
index 161bcf0..9e3b78c 100644
--- a/public/index.html
+++ b/public/index.html
@@ -22,7 +22,7 @@
@@ -53,12 +53,12 @@
var m;
if (!ua) return true;
if (/MSIE |Trident\//.exec(ua)) return true; // no IE
- m = /Edge\/([\d.]+)/.exec(ua); // Edge >= 16
- if (m && Number(m[1]) < 16) return true;
- m = /Chrome\/([\d.]+)/.exec(ua); // Chrome >= 50
- if (m && Number(m[1]) < 50) return true;
- m = /Firefox\/([\d.]+)/.exec(ua); // Firefox >= 38
- return m && Number(m[1]) < 38;
+ m = /Edge\/([\d.]+)/.exec(ua); // Edge >= 17
+ if (m && Number(m[1]) < 17) return true;
+ m = /Chrome\/([\d.]+)/.exec(ua); // Chrome >= 58
+ if (m && Number(m[1]) < 58) return true;
+ m = /Firefox\/([\d.]+)/.exec(ua); // Firefox >= 45
+ return m && Number(m[1]) < 45;
})();
if (detected) {
document.getElementById('loader-tips-outdated').hidden = false;
diff --git a/src/App.vue b/src/App.vue
index b76490c..eff18f4 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -92,12 +92,13 @@
try {
const resp = await fetch("https://stats.ixarea.com/collect/music/app-version", {
method: "POST", headers: {"Content-Type": "application/json"},
- body: JSON.stringify({Version: this.version})
+ body: JSON.stringify({"Version": this.version})
});
updateInfo = await resp.json();
} catch (e) {
}
- if (!!updateInfo && !!updateInfo.Found) {
+ if ((!!updateInfo && process.env.NODE_ENV === 'production') && (!!updateInfo.HttpsFound ||
+ (!!updateInfo.Found && window.location.protocol !== "https:"))) {
this.$notify.warning({
title: '发现更新',
message: '发现新版本 v' + updateInfo.Version +