summaryrefslogtreecommitdiff
path: root/website/app.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-11-14 09:38:42 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-11-14 17:34:28 -0800
commit765863e87aea725301d5f528b6de15bfa6022d46 (patch)
treec47b8133be4e5de36c9ed2d686f57f90480e72b0 /website/app.js
parentfbaa40f6dcf67bf1113f3d4d8f600d2f73e01414 (diff)
Add a simple doc generation tool.
And website upload tool.
Diffstat (limited to 'website/app.js')
-rw-r--r--website/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/website/app.js b/website/app.js
index 6bf5194b1..d3b90b297 100644
--- a/website/app.js
+++ b/website/app.js
@@ -182,6 +182,13 @@ function formatSecsAsMins(t) {
* @param dataUrl The url of benchramk data json.
*/
export function drawCharts(dataUrl) {
+ // TODO Using window["location"]["hostname"] instead of
+ // window.location.hostname because when deno runs app_test.js it gets a type
+ // error here, not knowing about window.location. Ideally Deno would skip
+ // type check entirely on JS files.
+ if (window["location"]["hostname"] != "deno.github.io") {
+ dataUrl = "https://denoland.github.io/deno/" + dataUrl;
+ }
drawChartsFromBenchmarkData(dataUrl);
drawChartsFromTravisData();
}