diff --git a/package.json b/package.json index 337f9ccb..1d472769 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "dependencies": { "electron-is-dev": "^0.1.2", "electron-store": "^5.1.1", + "electron-unhandled": "^3.0.2", "execa": "^4.0.0", "ffmpeg-static": "^4.1.0", "ffprobe-static": "^3.0.0", diff --git a/public/electron.js b/public/electron.js index 148d7c91..378063ba 100644 --- a/public/electron.js +++ b/public/electron.js @@ -2,6 +2,7 @@ const electron = require('electron'); // eslint-disable-line const isDev = require('electron-is-dev'); const { join } = require('path'); const os = require('os'); +const unhandled = require('electron-unhandled'); const menu = require('./menu'); const configStore = require('./configStore'); @@ -11,6 +12,11 @@ const { checkNewVersion } = require('./update-checker'); const { app } = electron; const { BrowserWindow } = electron; + +unhandled({ + showDialog: true, +}); + app.name = 'LosslessCut'; // Keep a global reference of the window object, if you don't, the window will