Skip to content

Commit

Permalink
Fixes benchmark page spinner on Edge #2508 (#2525)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjamesstone authored and ry committed Jun 15, 2019
1 parent 7b06aa3 commit 76329cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions website/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -291,7 +291,9 @@ export function main(): void {

showSpinner();

drawCharts(u).finally(hideSpinner);
drawCharts(u)
.then(hideSpinner)
.catch(hideSpinner);
}
updateCharts();

Expand Down
2 changes: 1 addition & 1 deletion website/benchmarks.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h3 id="syscalls">Syscall count <a href="#syscalls">#</a></h3>
<script src="https://unpkg.com/[email protected]/dist/d3.min.js"></script>
<script src="https://unpkg.com/[email protected]/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>
Expand Down
4 changes: 2 additions & 2 deletions website/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76329cf

Please sign in to comment.