mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-06-01 09:41:38 +00:00
20 lines
524 B
JavaScript
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();
|