From 544c3cec05338426e579ff56e4c7557de3b85b97 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 18 Jun 2018 15:51:52 +0700 Subject: [PATCH] prefer embedded iframe over new window (when running in browser, doesn't work in JFX webkit where new browser popup is preferred) --- website/getting-started/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }