mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-23 03:25:07 +03:00
Refactor code to use the new 'id' function
This commit is contained in:
@@ -7,11 +7,12 @@
|
||||
|
||||
import "../../electron.d.ts";
|
||||
import { PRODUCT_NAME } from "../core/config.ts";
|
||||
import { id } from "../utils/utils.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;
|
||||
id("window-title").textContent = PRODUCT_NAME;
|
||||
} else {
|
||||
console.log("Running in normal browser");
|
||||
}
|
||||
Reference in New Issue
Block a user