macintosh.js/src/renderer/credits.js
2020-07-27 10:33:55 -07:00

20 lines
524 B
JavaScript

const { shell, ipcRenderer } = require("electron");
const path = require("path");
const { versions } = require("process");
const { getAppVersion } = require("./ipc.js");
async function credits() {
license.onclick = () => {
const licensePath = path.join(__dirname, "../basilisk/LICENSE.txt");
shell.openPath(licensePath);
};
const version = await getAppVersion();
document.querySelector(
"#versions"
).innerHTML = `macintosh.js v${version} with Electron v${process.versions.electron}`;
}
credits();