From 851219f835ed037d9fd970f538095e4b339c5342 Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Wed, 1 Feb 2023 11:14:18 +0200 Subject: [PATCH] Lazily import Electron from child-writer process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No idea how this *used* to work, but it doesn’t since 887ec428 and this is fixing it properly. Change-type: patch --- lib/shared/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/utils.ts b/lib/shared/utils.ts index 100672b8..b1299a8d 100755 --- a/lib/shared/utils.ts +++ b/lib/shared/utils.ts @@ -15,7 +15,6 @@ */ import axios from 'axios'; -import { app, remote } from 'electron'; import { Dictionary } from 'lodash'; import * as errors from './errors'; @@ -50,6 +49,7 @@ export async function delay(duration: number): Promise { } export function getAppPath(): string { + const { app, remote } = require('electron'); return ( (app || remote.app) .getAppPath()