From daf13eacb107b64d87a97aad9d4da78f5a9b72bc Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Tue, 8 Mar 2022 07:45:14 -0600 Subject: [PATCH] fixed isPackaged issue --- src/config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config.js b/src/config.js index 2121961..61dfdfd 100644 --- a/src/config.js +++ b/src/config.js @@ -2,9 +2,11 @@ const { app } = require("electron"); const DOMAIN = "crimata.com"; +const prod = !process.defaultApp; + module.exports = { -PLATFORM: app.isPackaged ? `http://app.${DOMAIN}` : `http://localhost:8760`, -API: app.isPackaged ? `https://${DOMAIN}/api` : `http://localhost:8761` +PLATFORM: prod ? `http://app.${DOMAIN}` : `http://localhost:8760`, +API: prod ? `https://${DOMAIN}/api` : `http://localhost:8761` } -- 2.43.0