a simple keynote software for Markdown files – written in electron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
342 B

const electron = require("electron");
const isDevelopment = () => {
if (typeof electron === "string")
return true;
const isEnvSet = "ELECTRON_IS_DEV" in process.env;
const getFromEnv = parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
return isEnvSet ? getFromEnv : !electron.app.isPackaged;
};
module.exports = {
isDevelopment
};