mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed error with undefined in ids
This commit is contained in:
@@ -113,7 +113,7 @@ var Youtube = {
|
||||
|| newState.data == 101 || newState.data == 150)
|
||||
socket.emit("skip", newState.data);
|
||||
else if(video_id !== undefined)
|
||||
ytplayer.loadVideoById(video_id);
|
||||
ytplayer.loadVideoById(video_id);
|
||||
},
|
||||
|
||||
onPlayerReady: function(event) {
|
||||
@@ -147,7 +147,7 @@ var Youtube = {
|
||||
|
||||
var colorThief = new ColorThief();
|
||||
var color = colorThief.getColor(img);
|
||||
|
||||
|
||||
document.getElementsByTagName("body")[0].style.backgroundColor = Helper.rgbToHsl(color);
|
||||
console.log(colorThief.getColor(img));
|
||||
$("meta[name=theme-color]").attr("content", Helper.rgbToHex(color[0], color[1], color[2]));
|
||||
|
||||
Reference in New Issue
Block a user