elm-live icon indicating copy to clipboard operation
elm-live copied to clipboard

Not reloading when the url has some parameter

Open lucamug opened this issue 5 years ago • 1 comments

In case the url is something like:

http://localhost:8001/index.html?a=b

It seems that this snippet is not inserted.

<!-- Inserted by Reload -->
<script src="/reload/reload.js"></script>
<!-- End Reload -->

In start.js:

} else if (url.isType(CONTENT_TYPE)) {
  readFile(url.getPath, 'utf8')
    .alt(readFile(url.rootpath, 'utf8'))
    .fork(resolveNotFound(res), resolveWith(model.reload, res))

url.isType(CONTENT_TYPE is false, so resolveWith is not executed

lucamug avatar Mar 18 '20 09:03 lucamug

Could also be somehow related to https://github.com/wking-io/elm-live/issues/199 ?

lucamug avatar Mar 18 '20 09:03 lucamug