Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(function(){
console.log('ClickToPlayer')
setProviderList(providersJson)
let players = document.querySelectorAll('.lowweb__click-to-load')
players.forEach(( player )=>{
let videoUrl, oembedUrl
const type = player.dataset.lowtype
const data = videoToBlock[type]
// button
if( data.icon ){
player.innerHTML = data.icon
}
const id = getId( player.dataset.lowsrc, type )
if( data.video_url != '' && data.oembed != '' && id ) {