From 6ca466cc223916d3452163e3f1d483c768d03ceb Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 2 Jul 2021 11:58:43 +1000 Subject: [PATCH] fix about window localized string --- about.html | 79 +++++++++++++++++----------------- js/about_start.js | 13 ++---- ts/session/snode_api/onions.ts | 2 +- 3 files changed, 44 insertions(+), 50 deletions(-) diff --git a/about.html b/about.html index 904e395d7..6dc86c92f 100644 --- a/about.html +++ b/about.html @@ -1,7 +1,8 @@ - - - - - + a { + color: white; + } + + - - + + -
-
-
-
- getsession.org -
-
-
- Privacy Policy
- Terms of Service -
+
+
+
+
+ getsession.org +
+
+
+ Privacy Policy
+ Terms of Service +
- - - - - \ No newline at end of file + + + + diff --git a/js/about_start.js b/js/about_start.js index 311b3ed48..dbb580a0a 100644 --- a/js/about_start.js +++ b/js/about_start.js @@ -1,12 +1,8 @@ /* global $: false */ -// Add version -const version = window.getVersion(); -$('.version').text(`v${version}`); - -if (/beta/.test(version)) { - $('.commitHash').text(window.getCommitHash()); -} +// Add version and commit hash +$('.version').text(`v${window.getVersion()}`); +$('.commitHash').text(window.getCommitHash()); // Add debugging metadata - environment if not production, app instance name const states = []; @@ -28,6 +24,3 @@ $(document).on('keyup', e => { window.closeAbout(); } }); - -// Localize the privacy string -$('.privacy').text(window.i18n('privacyPolicy')); diff --git a/ts/session/snode_api/onions.ts b/ts/session/snode_api/onions.ts index 4bc691e2f..aeb5fa3bb 100644 --- a/ts/session/snode_api/onions.ts +++ b/ts/session/snode_api/onions.ts @@ -4,7 +4,7 @@ import https from 'https'; import { dropSnodeFromSnodePool, dropSnodeFromSwarmIfNeeded, updateSwarmFor } from './snodePool'; import ByteBuffer from 'bytebuffer'; import { OnionPaths } from '../onions'; -import { toHex } from '../utils/String'; +import { toHex } from '../utils/String'; import pRetry from 'p-retry'; import { incrementBadPathCountOrDrop } from '../onions/onionPath'; import _ from 'lodash';