1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-31 11:34:15 -05:00

Fixes benchmark page spinner on Edge #2508 (#2525)

This commit is contained in:
David Stone 2019-06-15 19:22:27 +01:00 committed by Ryan Dahl
parent 7b06aa3734
commit 76329cf610
3 changed files with 7 additions and 5 deletions

View file

@ -189,7 +189,7 @@ function formatSecsAsMins(t) {
}
/**
* @param dataUrl The url of benchramk data json.
* @param dataUrl The url of benchmark data json.
*/
export function drawCharts(dataUrl) {
// TODO Using window["location"]["hostname"] instead of
@ -291,7 +291,9 @@ export function main(): void {
showSpinner();
drawCharts(u).finally(hideSpinner);
drawCharts(u)
.then(hideSpinner)
.catch(hideSpinner);
}
updateCharts();

View file

@ -230,7 +230,7 @@
<script src="https://unpkg.com/d3@5.7.0/dist/d3.min.js"></script>
<script src="https://unpkg.com/c3@0.6.7/c3.min.js"></script>
<!-- Run "deno bundle app.ts" to generate app.bundle.js -->
<!-- Run "deno bundle app.ts app.bundle.js" to generate app.bundle.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script src="app.bundle.js"></script>
<script>

View file

@ -125,8 +125,8 @@ code {
left: 50%;
width: 60px;
height: 60px;
margin-top: -10px;
margin-left: -10px;
margin-top: -30px;
margin-left: -30px;
border-radius: 50%;
border: 2px solid #ccc;
border-top-color: #000;