diff --git a/website/getting-started/index.js b/website/getting-started/index.js index 017963e2..29642413 100644 --- a/website/getting-started/index.js +++ b/website/getting-started/index.js @@ -66,12 +66,20 @@ function getData() { } } + // prefer video file link over youtube link if (!youtube) { data.forEach(function(it) { it.link = it.video }) } + // prefer embedded iframe over new window + if (!embed) { + data.forEach(function(it) { + it['iframe'] = it.link + }) + } + return data }