From 2f79332fdb938f8fd34b6d58d0958f4edddee4fb Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Wed, 23 Nov 2022 10:52:32 +0800 Subject: [PATCH] fix isDev --- public/electron.js | 2 +- src/isDev.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/electron.js b/public/electron.js index f09e5f50..caca2eee 100644 --- a/public/electron.js +++ b/public/electron.js @@ -255,4 +255,4 @@ function focusWindow() { } } -module.exports = { focusWindow }; +module.exports = { focusWindow, isDev }; diff --git a/src/isDev.js b/src/isDev.js index 817dcb47..a4aa4bba 100644 --- a/src/isDev.js +++ b/src/isDev.js @@ -1 +1,3 @@ -export default true; // todo +const { isDev } = window.require('@electron/remote').require('./electron'); + +export default isDev;