mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
9 lines
291 B
TypeScript
9 lines
291 B
TypeScript
import { contextBridge } from "electron";
|
|
import type { ElectronInterface, Platform } from "../electron";
|
|
|
|
const electronInterface: ElectronInterface = {
|
|
desktop: true,
|
|
platform: process.platform as Platform
|
|
}
|
|
|
|
contextBridge.exposeInMainWorld("electronInterface", electronInterface); |