From 07f9a2d168daeb9bb25bd2b56968dffe164aba73 Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Wed, 27 Jun 2018 09:46:35 +0200 Subject: [PATCH] Fix bug staticpath --- packages/fether-electron/src/main/utils/staticPath.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fether-electron/src/main/utils/staticPath.js b/packages/fether-electron/src/main/utils/staticPath.js index 05da96ce..02307e9f 100644 --- a/packages/fether-electron/src/main/utils/staticPath.js +++ b/packages/fether-electron/src/main/utils/staticPath.js @@ -5,14 +5,14 @@ /* global __static */ -import { app } from 'electron'; +const appIsPackaged = !process.defaultApp; /** * Get the path to the `static` folder. * * @see https://github.com/electron-userland/electron-webpack/issues/52 */ -const staticPath = app.isPackaged +const staticPath = appIsPackaged ? __dirname.replace(/app\.asar$/, 'static') : __static; -- GitLab