Adapt the web version to Electron

This commit is contained in:
2025-08-24 23:15:20 +03:00
Unverified
parent 3bbfafa9e5
commit 8348547baa
12 changed files with 286 additions and 175 deletions
+10
View File
@@ -0,0 +1,10 @@
import "../electron.d.ts";
import { PRODUCT_NAME } from "./config";
if (window.electronInterface !== undefined) {
console.log("Running in Electron");
document.documentElement.classList.add("electron", `platform-${window.electronInterface.platform}`);
document.getElementById("window-title")!.textContent = PRODUCT_NAME;
} else {
console.log("Running in normal browser");
}