on master help sign in
don't bother with a message for Platform.worker

Maybe have Platform.worker do something if it is given a `node` as an argument instead. That'd indicate that someone is unclear on how to use it.

commit6173f080396a2f4c0215898ae4b68c7f22252aac authorEvan Czaplicki <evancz@users.noreply.github.com> dateMon 5 Aug 2019, 16:11 (7 years ago) parentdb1d374
1 file changed+4−8
compiler/src/Generate/Html.hs+4−8
compiler/src/Generate/Html.hs+4−8
@@ -29,20 +29,16 @@ sandwich moduleName javascript =
2929
3030<body>
3131
32−<pre id="elm">
33−This is a headless program, meaning there is nothing to show here.
34−
35−I started the program anyway though!
36−
37−You can access it as `app` in the developer console.
38−</pre>
32+<pre id="elm"></pre>
3933
4034<script>
4135try {
4236|] <> javascript <> [r|
4337
4438 var app = Elm.|] <> name <> [r|.init({ node: document.getElementById("elm") });
45−} catch (e) {
39+}
40+catch (e)
41+{
4642 // display initialization errors (e.g. bad flags, infinite recursion)
4743 var header = document.createElement("h1");
4844 header.style.fontFamily = "monospace";