mime-chat/src/background.ts
2021-02-10 23:10:18 -06:00

25 lines
580 B
TypeScript

/*
* Entry point for Crimata electron app.
* "Look on my Works, ye Mighty, and despair!"
*/
"use strict";
import { protocol } from "electron";
import { initApp } from './background/init';
// Scheme must be registered before the app is ready
protocol.registerSchemesAsPrivileged([
{ scheme: "app", privileges: { secure: true, standard: true } }
]);
// Load environment variable
const isDevelopment = process.env.NODE_ENV !== "production";
// NOTE Program Begins Here
(async () => {
console.log('Starting Crimata electron app.');
initApp(isDevelopment);
})();