mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
43a44793c5
Also removed all hints of previous linters
28 lines
630 B
JavaScript
28 lines
630 B
JavaScript
/* global $: false */
|
|
|
|
// Add version
|
|
$('.version').text(`v${window.getVersion()}`);
|
|
|
|
// Add debugging metadata - environment if not production, app instance name
|
|
const states = [];
|
|
|
|
if (window.getEnvironment() !== 'production') {
|
|
states.push(window.getEnvironment());
|
|
}
|
|
if (window.getAppInstance()) {
|
|
states.push(window.getAppInstance());
|
|
}
|
|
|
|
$('.environment').text(states.join(' - '));
|
|
|
|
// Install the 'dismiss with escape key' handler
|
|
$(document).on('keyup', e => {
|
|
'use strict';
|
|
|
|
if (e.keyCode === 27) {
|
|
window.closeAbout();
|
|
}
|
|
});
|
|
|
|
// Localize the privacy string
|
|
$('.privacy').text(window.i18n('privacyPolicy'));
|