You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
635 B
TypeScript
27 lines
635 B
TypeScript
7 years ago
|
/* global $: false */
|
||
|
|
||
4 years ago
|
// Add version and commit hash
|
||
|
$('.version').text(`v${window.getVersion()}`);
|
||
3 years ago
|
$('.commitHash').text(window.getCommitHash() || '');
|
||
7 years ago
|
|
||
|
// 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
|
||
3 years ago
|
// $(document).on('keyup', e => {
|
||
|
// 'use strict';
|
||
7 years ago
|
|
||
3 years ago
|
// if (e.keyCode === 27) {
|
||
|
// window.closeAbout();
|
||
|
// }
|
||
|
// });
|