Organized the differences between server and docker versions.
We are launching a docker version (server version) today so we want to just organize the repo so its easier to navigate.
This commit is contained in:
18
desktop/src/scripts/titlebar.js
Normal file
18
desktop/src/scripts/titlebar.js
Normal file
@@ -0,0 +1,18 @@
|
||||
if (window.electronAPI?.isElectron) {
|
||||
document.documentElement.classList.add("electron");
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.documentElement.style.visibility = "visible";
|
||||
if (!window.electronAPI?.isElectron) return;
|
||||
document.body.classList.add("electron");
|
||||
|
||||
const titlebar = document.getElementById("titlebar");
|
||||
if (!titlebar) return;
|
||||
|
||||
titlebar.style.display = "flex";
|
||||
|
||||
titlebar.querySelector(".min").onclick = () => window.electronAPI.win.minimize();
|
||||
titlebar.querySelector(".max").onclick = () => window.electronAPI.win.maximize();
|
||||
titlebar.querySelector(".close").onclick = () => window.electronAPI.win.close();
|
||||
});
|
||||
Reference in New Issue
Block a user