diff --git a/webroot/js/player.js b/webroot/js/player.js index df9f77d..51664b7 100644 --- a/webroot/js/player.js +++ b/webroot/js/player.js @@ -352,8 +352,8 @@ window.addEventListener('DOMContentLoaded', (event) => { function handleProtected(e) { console.log(e) - if(e.originalTarget.error.code == 4 && ! e.originalTarget.currentSrc.startsWith("https://"+window.location.hostname)) { - e.target.src="https://"+window.location.hostname+"/proxy?url="+encodeURIComponent(encodeURIComponent(e.originalTarget.currentSrc)) + if(e.target.error.code == 4 && ! e.target.currentSrc.startsWith("https://"+window.location.hostname)) { + e.target.src="https://"+window.location.hostname+"/proxy?url="+encodeURIComponent(encodeURIComponent(e.target.currentSrc)) } }