From: Andrew Gundersen Date: Tue, 8 Mar 2022 13:45:14 +0000 (-0600) Subject: fixed isPackaged issue X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=daf13eacb107b64d87a97aad9d4da78f5a9b72bc;p=mime-chat fixed isPackaged issue --- 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` }