We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d5e038 commit 25c19b6Copy full SHA for 25c19b6
plugins/plugin-codeflare/src/preload.ts
@@ -24,7 +24,11 @@ import { Capabilities } from "@kui-shell/core"
24
*/
25
export default async function codeflarePreload() {
26
if (!Capabilities.isHeadless()) {
27
- const { ipcRenderer } = await import("electron")
28
- import("./tray/renderer").then((_) => _.default(ipcRenderer))
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
+ const { tray } = require("@kui-shell/client/config.d/client.json")
29
+ if (tray !== false) {
30
+ const { ipcRenderer } = await import("electron")
31
+ import("./tray/renderer").then((_) => _.default(ipcRenderer))
32
+ }
33
}
34
0 commit comments