mirror of
https://github.com/heyman/heynote.git
synced 2024-11-22 07:54:11 +01:00
459fcd7c4c
The about dialog contains version info as well as the timestamp for the currency exchange rates.
14 lines
454 B
JavaScript
14 lines
454 B
JavaScript
import { ipcRenderer } from "electron"
|
|
import CONFIG from "../config"
|
|
|
|
ipcRenderer.on("init", function (evt, data) {
|
|
document.getElementById("version").innerText = data.version;
|
|
|
|
let currency = CONFIG.get("currency")
|
|
if (currency && currency.data && currency.data.timestamp) {
|
|
const date = new Date(currency.data.timestamp * 1000);
|
|
document.getElementById("currencyTimestamp").innerText = date.toLocaleString()
|
|
}
|
|
});
|
|
|