mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-06 19:18:22 +01:00
10 lines
289 B
TypeScript
10 lines
289 B
TypeScript
|
// Copyright 2024, Command Line Inc.
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
let { contextBridge, ipcRenderer } = require("electron");
|
||
|
|
||
|
contextBridge.exposeInMainWorld("api", {
|
||
|
isDev: () => ipcRenderer.sendSync("isDev"),
|
||
|
isDevServer: () => ipcRenderer.sendSync("isDevServer"),
|
||
|
});
|