Skip to content

Commit

Permalink
#235 Fix for the crash when file doesn't exists
Browse files Browse the repository at this point in the history
Fix the issue that for not existing file (i.e. https://localhost:8000/xyz/index.html), elm-live was crashing (#235)
  • Loading branch information
lucamug committed Jul 6, 2020
1 parent 07f422f commit cf27cae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ function getRequestType ({ pathname, fileType }, { proxyPrefix, pushstate }) {
if (pathname.startsWith(proxyPrefix)) {
return PROXY_TYPE
} else if (
isRoot({ pathname, pushstate, fileType }) ||
fileType === 'text/html'
isRoot({ pathname, pushstate, fileType })
) {
return CONTENT_TYPE
} else if (pathname === '/reload/reload.js') {
Expand Down

0 comments on commit cf27cae

Please sign in to comment.