π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:zap: Uses regex for parsing versions, as more efficient
Alicia Sykesf16059d5e9db
diff --git a/services/update-checker.js b/services/update-checker.jsindex c55492fd..8f503888 100644--- a/services/update-checker.js+++ b/services/update-checker.js@@ -5,7 +5,7 @@ const currentVersion = require('../package.json').version;const packageUrl = 'https://raw.githubusercontent.com/Lissy93/dashy/master/package.json';const makeMsg = (latestVersion) => {- const parse = (version) => parseInt(version.replaceAll('.', ''), 10);+ const parse = (version) => parseInt(version.replace(/\./g, ''), 10);const difference = parse(latestVersion) - parse(currentVersion);let msg = '';if (difference <= 0) {