diff --git a/package.json b/package.json index c0e96098a3b..85c53c4ee34 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@hakuneko/kindlegen-binaries": "latest", "@logtrine/logtrine": "latest", "asar": "latest", - "electron": "6.1.7", + "electron": "7.1.9", "eslint": "latest", "fs-extra": "latest", "innosetup-compiler": "latest", diff --git a/src/app/ElectronBootstrap.js b/src/app/ElectronBootstrap.js index 889ca82f4f8..6ee5b7261fb 100644 --- a/src/app/ElectronBootstrap.js +++ b/src/app/ElectronBootstrap.js @@ -94,7 +94,7 @@ module.exports = class ElectronBootstrap { buffer = Buffer.from(JSON.stringify(await fs.readdir(endpoint))); } if(stats.isFile()) { - mime = endpoint.endsWith('.mjs') ? 'text/javascript' : ''; + mime = endpoint.endsWith('.mjs') ? 'text/javascript' : undefined; buffer = await fs.readFile(endpoint); } callback({