From 2cfa60832496902089b9d73d3954318aa8a1fe2a Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 25 Oct 2018 06:26:21 +1100 Subject: Support CheckJS --- website/app.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'website') diff --git a/website/app.js b/website/app.js index 5185c936a..375c6a54b 100644 --- a/website/app.js +++ b/website/app.js @@ -148,10 +148,12 @@ function generate( }; } + // @ts-ignore c3.generate({ bindto: id, size: { height: 300, + // @ts-ignore width: window.chartWidth || 375 // TODO: do not use global variable }, data: { @@ -200,6 +202,7 @@ export async function drawChartsFromBenchmarkData(dataUrl) { const sha1ShortList = sha1List.map(sha1 => sha1.substring(0, 6)); const viewCommitOnClick = _sha1List => d => { + // @ts-ignore window.open( `https://github.com/denoland/deno/commit/${_sha1List[d["index"]]}` ); @@ -229,6 +232,7 @@ export async function drawChartsFromBenchmarkData(dataUrl) { */ export async function drawChartsFromTravisData() { const viewPullRequestOnClick = _prNumberList => d => { + // @ts-ignore window.open( `https://github.com/denoland/deno/pull/${_prNumberList[d["index"]]}` ); -- cgit v1.2.3