mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-23 03:25:07 +03:00
Optimize build workflows to trigger only when important files changed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import "../../electron.d.ts";
|
||||
import { PRODUCT_NAME } from "../config.ts";
|
||||
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user