mirror of
https://github.com/pi-hole/web.git
synced 2026-05-27 11:05:08 +01:00
If we are on vDev then we assume that it is always newer than the latest online release, i.e. version comparion should return 1
This commit is contained in:
@@ -47,6 +47,14 @@ function versionCompare(left, right) {
|
||||
if (typeof left + typeof right != 'stringstring')
|
||||
return false;
|
||||
|
||||
// If we are on vDev then we assume that it is always
|
||||
// newer than the latest online release, i.e. version
|
||||
// comparion should return 1
|
||||
if(left == "vDev")
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
var aa = left.split("v"),
|
||||
bb = right.split("v");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user