Fixing issue with embedded player suddenly showing up in debuglog

This commit is contained in:
Kasper Rynning-Tønnesen
2018-07-01 21:41:31 +02:00
parent 11509d9fbc
commit f8edd7c01a
2 changed files with 2 additions and 1 deletions

View File

@@ -1295,6 +1295,7 @@ window.addEventListener("focus", function(event) {
window.addEventListener("resize", function(){
if(chan && !Helper.mobilecheck()){
if(document.querySelector("#wrapper") == null) return;
if(window.innerWidth > 600 && document.querySelector("#wrapper").style.height != "") {
document.querySelector("#wrapper").style.height = "";
document.querySelector("#chat-bar").style.height = "";

View File

@@ -103,7 +103,7 @@ var Player = {
Helper.log([
"onPlayerStateChange",
"New state\nState: ",
newState
newState.data
]);
if(Player.player && Player.player.getCurrentTime() > startTime + Player.np.start && !fix_too_far && autoplay) {
Player.seekTo(seekTo);