mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Adapt the web version to Electron
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { contextBridge } from "electron";
|
||||
import type { ElectronInterface, Platform } from "../electron";
|
||||
|
||||
const electronInterface: ElectronInterface = {
|
||||
desktop: true,
|
||||
platform: process.platform as Platform
|
||||
}
|
||||
|
||||
contextBridge.exposeInMainWorld("electronInterface", electronInterface);
|
||||
Reference in New Issue
Block a user