mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixing issue with embedded player suddenly showing up in debuglog
This commit is contained in:
@@ -1295,6 +1295,7 @@ window.addEventListener("focus", function(event) {
|
|||||||
|
|
||||||
window.addEventListener("resize", function(){
|
window.addEventListener("resize", function(){
|
||||||
if(chan && !Helper.mobilecheck()){
|
if(chan && !Helper.mobilecheck()){
|
||||||
|
if(document.querySelector("#wrapper") == null) return;
|
||||||
if(window.innerWidth > 600 && document.querySelector("#wrapper").style.height != "") {
|
if(window.innerWidth > 600 && document.querySelector("#wrapper").style.height != "") {
|
||||||
document.querySelector("#wrapper").style.height = "";
|
document.querySelector("#wrapper").style.height = "";
|
||||||
document.querySelector("#chat-bar").style.height = "";
|
document.querySelector("#chat-bar").style.height = "";
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ var Player = {
|
|||||||
Helper.log([
|
Helper.log([
|
||||||
"onPlayerStateChange",
|
"onPlayerStateChange",
|
||||||
"New state\nState: ",
|
"New state\nState: ",
|
||||||
newState
|
newState.data
|
||||||
]);
|
]);
|
||||||
if(Player.player && Player.player.getCurrentTime() > startTime + Player.np.start && !fix_too_far && autoplay) {
|
if(Player.player && Player.player.getCurrentTime() > startTime + Player.np.start && !fix_too_far && autoplay) {
|
||||||
Player.seekTo(seekTo);
|
Player.seekTo(seekTo);
|
||||||
|
|||||||
Reference in New Issue
Block a user