浏览代码

Do not show version notifications for prereleases.

Ian Walton 2 年之前
父节点
当前提交
e25c01170e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      native/jmpUpdatePlugin.js

+ 1 - 0
native/jmpUpdatePlugin.js

@@ -19,6 +19,7 @@ class jmpUpdatePlugin {
                 const version = urlSegments[urlSegments.length - 1].substring(1);
                 const currentVersion = navigator.userAgent.split(" ")[1];
 
+                if (currentVersion.includes('pre')) return; // Do not notify for prereleases
                 if (version == currentVersion) return;
                 if (!/^[0-9.-]+$/.test(version)) return;