diff --git a/public/app.js b/public/app.js
index dad7bfd6..d0845008 100644
--- a/public/app.js
+++ b/public/app.js
@@ -107,9 +107,18 @@ function formatEngineBadge(engine) {
function formatVersionBadge(version, commit, engine) {
if (!version && !commit && !engine) return '';
+ var port = (typeof location !== 'undefined' && location.port) || '';
+ var isProd = !port || port === '80' || port === '443';
+ var GH = 'https://github.com/Kpa-clawbot/meshcore-analyzer';
var parts = [];
- if (version) parts.push(version.charAt(0) === 'v' ? version : 'v' + version);
- if (commit && commit !== 'unknown') parts.push(commit.length > 7 ? commit.slice(0, 7) : commit);
+ if (version && isProd) {
+ var vTag = version.charAt(0) === 'v' ? version : 'v' + version;
+ parts.push('' + vTag + '');
+ }
+ if (commit && commit !== 'unknown') {
+ var short = commit.length > 7 ? commit.slice(0, 7) : commit;
+ parts.push('' + short + '');
+ }
if (engine) parts.push('[' + engine + ']');
if (parts.length === 0) return '';
return ' ' + parts.join(' · ') + '';
diff --git a/public/index.html b/public/index.html
index da96d3d5..15f20a9e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -22,9 +22,9 @@
-
-
-
+
+
+
@@ -81,29 +81,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+