mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
21 lines
748 B
JavaScript
21 lines
748 B
JavaScript
|
'use strict';
|
||
|
const { remote } = require('electron');
|
||
|
|
||
|
renderDom();
|
||
|
|
||
|
/**
|
||
|
* Method that renders the data from user config
|
||
|
*/
|
||
|
function renderDom() {
|
||
|
document.addEventListener('DOMContentLoaded', function () {
|
||
|
const applicationName = remote.app.getName() || 'Symphony';
|
||
|
const version = remote.app.getVersion();
|
||
|
let appName = document.getElementById('app-name');
|
||
|
let versionText = document.getElementById('version');
|
||
|
let copyright = document.getElementById('copyright');
|
||
|
|
||
|
appName.innerHTML = applicationName;
|
||
|
versionText.innerHTML = version ? `Version ${version} (${version})` : null;
|
||
|
copyright.innerHTML = `Copyright © ${new Date().getFullYear()} ${applicationName}`
|
||
|
});
|
||
|
}
|