Skip to content

Commit

Permalink
updated to electron 7.1.9 (#951)
Browse files Browse the repository at this point in the history
* updated to electron 7.1.9

* fixed mime type detection for custom protocol handlers
  • Loading branch information
ronny1982 authored and hakuneko-bot committed Jan 18, 2020
1 parent abeb38f commit d6bedf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/app/ElectronBootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit d6bedf6

Please sign in to comment.