Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Commit

Permalink
Make sure generated JS files are treated as UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
evancz committed Oct 26, 2016
1 parent 619e4c7 commit d987a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/Generate/Help.hs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ makeElmHtml filePath =
H.img ! A.src "/_reactor/waiting.gif"
H.div ! A.style "font-size: 1em" $ "With new projects, I need a bunch of extra time to download packages."

H.script ! A.src (H.toValue ("/_compile/" ++ filePath)) $ ""
H.script ! A.src (H.toValue ("/_compile/" ++ filePath)) ! A.charset "utf-8" $ ""
H.script $ H.preEscapedToMarkup $ unlines $
[ "while (document.body.firstChild) {"
, " document.body.removeChild(document.body.firstChild);"
Expand Down

0 comments on commit d987a13

Please sign in to comment.