prefer embedded iframe over new window (when running in browser, doesn't work in JFX webkit where new browser popup is preferred)

This commit is contained in:
Reinhard Pointner 2018-06-18 15:51:52 +07:00
parent d176612f33
commit 544c3cec05
1 changed files with 8 additions and 0 deletions

View File

@ -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
}