mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-06-08 22:29:40 +00:00
25 lines
467 B
JavaScript
25 lines
467 B
JavaScript
const { quit } = require("./ipc");
|
|
|
|
function setupDialogs() {
|
|
// Still empty
|
|
}
|
|
|
|
function showCloseWarning() {
|
|
const warningDialog = document.querySelector("#warning");
|
|
|
|
document.querySelector("#warning-quit").onclick = () => {
|
|
quit();
|
|
};
|
|
|
|
document.querySelector("#warning-cancel").onclick = () => {
|
|
warningDialog.classList.add("hidden");
|
|
};
|
|
|
|
warningDialog.classList.remove("hidden");
|
|
}
|
|
|
|
module.exports = {
|
|
setupDialogs,
|
|
showCloseWarning,
|
|
};
|