We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbdde3 commit f3eb963Copy full SHA for f3eb963
plugins/plugin-codeflare/src/preload.ts
@@ -14,7 +14,11 @@
14
* limitations under the License.
15
*/
16
17
+import { Capabilities } from "@kui-shell/core"
18
+
19
export default async () => {
- const { ipcRenderer } = await import("electron")
- import("./tray").then((_) => _.renderer(ipcRenderer))
20
+ if (!Capabilities.isHeadless()) {
21
+ const { ipcRenderer } = await import("electron")
22
+ import("./tray").then((_) => _.renderer(ipcRenderer))
23
+ }
24
}
0 commit comments