fix about window localized string

This commit is contained in:
Audric Ackermann 2021-07-02 11:58:43 +10:00
parent ef0b07bb7a
commit 6ca466cc22
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4
3 changed files with 44 additions and 50 deletions

View File

@ -1,7 +1,8 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Security-Policy" <meta
content="default-src 'none'; http-equiv="Content-Security-Policy"
content="default-src 'none';
child-src 'self'; child-src 'self';
connect-src 'self' https: wss:; connect-src 'self' https: wss:;
font-src 'self'; font-src 'self';
@ -11,44 +12,44 @@
media-src 'self' blob:; media-src 'self' blob:;
object-src 'none'; object-src 'none';
script-src 'self'; script-src 'self';
style-src 'self' 'unsafe-inline';"> style-src 'self' 'unsafe-inline';"
<link href="stylesheets/manifest.css" rel="stylesheet" type="text/css" /> />
<style> <link href="stylesheets/manifest.css" rel="stylesheet" type="text/css" />
body { <style>
text-align: center; body {
background-color: rgba(0, 0, 0); text-align: center;
color: white; background-color: rgba(0, 0, 0);
font-size: 14px; color: white;
} font-size: 14px;
}
img { img {
margin-top: 1em; margin-top: 1em;
padding: 12px; padding: 12px;
} }
a { a {
color: white; color: white;
} }
</style> </style>
</head> </head>
<body> <body>
<img src='images/session/session_icon.png' width='250' height='250'> <img src="images/session/session_icon.png" width="250" height="250" />
<div class='version'></div> <div class="version"></div>
<div class='commitHash'></div> <div class="commitHash"></div>
<div class='environment'></div> <div class="environment"></div>
<div> <div>
<a href="https://getsession.org">getsession.org</a> <a href="https://getsession.org">getsession.org</a>
</div> </div>
<br> <br />
<div> <div>
<a class="privacy" href="https://getsession.org/privacy-policy">Privacy Policy</a><br /> <a class="privacy" href="https://getsession.org/privacy-policy">Privacy Policy</a><br />
<a class="privacy" href="https://getsession.org/terms-of-service/">Terms of Service</a> <a class="privacy" href="https://getsession.org/terms-of-service/">Terms of Service</a>
</div> </div>
<script type='text/javascript' src='node_modules/jquery/dist/jquery.js'></script> <script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
<script type='text/javascript' src='js/about_start.js'></script> <script type="text/javascript" src="js/about_start.js"></script>
</body> </body>
</html>
</html>

View File

@ -1,12 +1,8 @@
/* global $: false */ /* global $: false */
// Add version // Add version and commit hash
const version = window.getVersion(); $('.version').text(`v${window.getVersion()}`);
$('.version').text(`v${version}`); $('.commitHash').text(window.getCommitHash());
if (/beta/.test(version)) {
$('.commitHash').text(window.getCommitHash());
}
// Add debugging metadata - environment if not production, app instance name // Add debugging metadata - environment if not production, app instance name
const states = []; const states = [];
@ -28,6 +24,3 @@ $(document).on('keyup', e => {
window.closeAbout(); window.closeAbout();
} }
}); });
// Localize the privacy string
$('.privacy').text(window.i18n('privacyPolicy'));

View File

@ -4,7 +4,7 @@ import https from 'https';
import { dropSnodeFromSnodePool, dropSnodeFromSwarmIfNeeded, updateSwarmFor } from './snodePool'; import { dropSnodeFromSnodePool, dropSnodeFromSwarmIfNeeded, updateSwarmFor } from './snodePool';
import ByteBuffer from 'bytebuffer'; import ByteBuffer from 'bytebuffer';
import { OnionPaths } from '../onions'; import { OnionPaths } from '../onions';
import { toHex } from '../utils/String'; import { toHex } from '../utils/String';
import pRetry from 'p-retry'; import pRetry from 'p-retry';
import { incrementBadPathCountOrDrop } from '../onions/onionPath'; import { incrementBadPathCountOrDrop } from '../onions/onionPath';
import _ from 'lodash'; import _ from 'lodash';