From b204eaca303dfc7ffbde8aacd807102722da644c Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 8 Dec 2016 22:57:23 +0100 Subject: [PATCH] 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 --- js/pihole/footer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/pihole/footer.js b/js/pihole/footer.js index 974dcc50..f8bd0de4 100644 --- a/js/pihole/footer.js +++ b/js/pihole/footer.js @@ -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");