mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
10 lines
389 B
TypeScript
10 lines
389 B
TypeScript
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");
|
|
} |