We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e9d2f3 commit 71a5a82Copy full SHA for 71a5a82
worker/src/Endpoint/Compile.hs
@@ -176,7 +176,12 @@ renderReport report =
176
<script src="https://worker.elm-lang.org/compile/errors.js"></script>
177
</head>
178
<body>
179
- <script>Elm.Errors.init({flags:|] <> Encode.encodeUgly (Exit.toJson report) <> [r|});</script>
+ <script>
180
+ var app = Elm.Errors.init({flags:|] <> Encode.encodeUgly (Exit.toJson report) <> [r|});
181
+ app.ports.jumpTo.subscribe(function(region) {
182
+ window.parent.postMessage(JSON.stringify(region), '*');
183
+ });
184
+ </script>
185
</body>
186
</html>|]
187
0 commit comments