Skip to content

Commit

Permalink
workaround for Electron renderer crash on reload because of sqlite3 (T…
Browse files Browse the repository at this point in the history
  • Loading branch information
theMK2k committed Dec 17, 2021
1 parent 9b3580c commit 8bb2587
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const isDevelopment = process.env.NODE_ENV !== "production";
// be closed automatically when the JavaScript object is garbage collected.
let win;

// workaround for Electron renderer crash on reload because of sqlite3 (https://github.com/mapbox/node-sqlite3/issues/1370)
app.allowRendererProcessReuse = false;

// Scheme must be registered before the app is ready
protocol.registerSchemesAsPrivileged([
{ scheme: "app", privileges: { secure: true, standard: true } },
Expand Down

0 comments on commit 8bb2587

Please sign in to comment.