Skip to content

Commit

Permalink
re-add electron initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
njbrown committed Feb 27, 2022
1 parent 234d43f commit 7325ba8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import * as Sentry from "@sentry/electron";
// Sentry.init({ dsn: process.env.VUE_APP_SENTRY_DNS });
// }

// require("@electron/remote/main").initialize();
// seems as tho this needs to be called else the app breaks
require("@electron/remote/main").initialize();

const isDevelopment = process.env.NODE_ENV !== "production";

Expand All @@ -26,6 +27,7 @@ let win: BrowserWindow | null;
protocol.registerSchemesAsPrivileged([
{ scheme: "app", privileges: { secure: true, standard: true } }
]);
console.log("registered schemes");

function createWindow() {
// Create the browser window.
Expand All @@ -51,6 +53,7 @@ function createWindow() {
} else {
createProtocol("app");
// Load the index.html when not in development
console.log("loading page");
win.loadURL("app://./index.html");
}

Expand Down

0 comments on commit 7325ba8

Please sign in to comment.