|
1 |
| -<meta name="sentry-trace" content="{{ sentry_trace }}" /> |
2 |
| -<script src="https://browser.sentry-cdn.com/6.17.7/bundle.js" crossorigin="anonymous"></script> |
3 | 1 | {{ sentry_trace }}
|
| 2 | +<script |
| 3 | + src="https://browser.sentry-cdn.com/6.17.7/bundle.js" |
| 4 | + crossorigin="anonymous" |
| 5 | +></script> |
4 | 6 | <!-- TODO: Replace with real tracing integration once it's fixed -->
|
5 | 7 | <script src="/static/tracing.js" crossorigin="anonymous"></script>
|
6 | 8 |
|
7 | 9 | <script>
|
8 |
| - |
9 |
| - |
10 |
| - |
11 |
| -Sentry.init({ |
| 10 | + Sentry.init({ |
12 | 11 | dsn: "{{ sentry_dsn }}",
|
13 |
| - integrations: [ |
14 |
| - new Sentry.Integrations.Tracing({ tracingOrigins: ['']}) |
15 |
| - ], |
16 |
| - debug: true |
17 |
| -}); |
| 12 | + integrations: [new Sentry.Integrations.Tracing({tracingOrigins: [""]})], |
| 13 | + debug: true, |
| 14 | + }); |
18 | 15 |
|
19 |
| -async function compute() { |
| 16 | + async function compute() { |
20 | 17 | const res = await fetch(
|
21 |
| - "/compute/" + |
22 |
| - document.getElementsByName('b64str')[0].value |
| 18 | + "/compute/" + document.
8000
getElementsByName("b64str")[0].value, |
23 | 19 | );
|
24 | 20 |
|
25 | 21 | const token = await res.text();
|
26 | 22 | wait(token);
|
27 | 23 |
|
28 | 24 | return false;
|
29 |
| -} |
| 25 | + } |
30 | 26 |
|
31 |
| -async function wait(token) { |
| 27 | + async function wait(token) { |
32 | 28 | const res = await fetch("/wait/" + token);
|
33 | 29 | const line = await res.text();
|
34 |
| - document.getElementById('output').innerHTML += line; |
35 |
| - document.getElementById('output').innerHTML += '<br>'; |
| 30 | + document.getElementById("output").innerHTML += line; |
| 31 | + document.getElementById("output").innerHTML += "<br>"; |
36 | 32 |
|
37 |
| - if(line == "NONE") { |
38 |
| - window.setTimeout(function() { wait(token) }, 500); |
| 33 | + if (line == "NONE") { |
| 34 | + window.setTimeout(function () { |
| 35 | + wait(token); |
| 36 | + }, 500); |
39 | 37 | }
|
40 |
| -} |
41 |
| - |
| 38 | + } |
42 | 39 | </script>
|
43 | 40 |
|
44 |
| - |
45 | 41 | <p>Decode your base64 string as a service (that calls another service)</p>
|
46 | 42 |
|
47 |
| -<input value='aGVsbG8gd29ybGQK' name=b64str> A base64 string<br> |
48 |
| -<input type=button value=submit onclick="compute()"> |
| 43 | +<input value="aGVsbG8gd29ybGQK" name="b64str" /> A base64 string<br /> |
| 44 | +<input type="button" value="submit" onclick="compute()" /> |
49 | 45 |
|
50 | 46 | <p>Output:</p>
|
51 |
| -<pre id=output /> |
| 47 | +<pre id="output" /> |
0 commit comments