SHOW:
|
|
- or go back to the newest paste.
| 1 | <script type="text/javascript" src="http://127.0.0.1:8001/_compile/src/Main.elm"></script> | |
| 2 | ||
| 3 | <script> | |
| 4 | ||
| 5 | if (typeof Elm === "undefined") {
| |
| 6 | - | document.body.innerHTML = `Elm Reactor is probably down.` |
| 6 | + | document.body.innerHTML = `Elm Invoker is probably down.` |
| 7 | } | |
| 8 | else if (Elm.Errors) {
| |
| 9 | document.body.innerHTML = | |
| 10 | `<iframe src="http://127.0.0.1:8002/src/Main.elm" frameborder="0" | |
| 11 | style="overflow:hidden;width:100%" height="10000"> | |
| 12 | </iframe>` | |
| 13 | } else {
| |
| 14 | var app = Elm.Main.init({ flags : { token: localStorage.token || "" }})
| |
| 15 | // ... | |
| 16 | } | |
| 17 | ||
| 18 | </script> |