mirror of
https://github.com/heyman/heynote.git
synced 2024-12-12 09:41:03 +01:00
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()
|
||
|
}
|
||
|
});
|
||
|
|