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