Pārlūkot izejas kodu

Do not show version notifications for prereleases.

Ian Walton 2 gadi atpakaļ
vecāks
revīzija
e25c01170e
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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;