We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
index.html
app.asar
1 parent 9636bee commit 1f196d3Copy full SHA for 1f196d3
index.js
@@ -38,8 +38,9 @@ module.exports = options => {
38
const indexPath = path.join(options.directory, 'index.html');
39
const filePath = path.join(options.directory, decodeURIComponent(new URL(request.url).pathname));
40
const resolvedPath = await getPath(filePath);
41
+ const fileExtension = path.extname(filePath);
42
- if (resolvedPath || !path.extname(filePath) || path.extname(filePath) === '.html') {
43
+ if (resolvedPath || !fileExtension || fileExtension === '.html' || fileExtension === '.asar') {
44
callback({
45
path: resolvedPath || indexPath
46
});
0 commit comments