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()