Fixed error in send_play function

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-09 14:22:22 +02:00
parent a4cf4acd74
commit 44a04aa9fa
10 changed files with 32 additions and 17 deletions

View File

@@ -77,6 +77,15 @@ function setup_youtube_listener(channel)
$(document).ready(function()
{
var img = new Image();
img.onload = function () {
var colorThief = new ColorThief();
colorThief.getColor(img);
};
img.crossOrigin = 'Anonymous';
img.src = 'http://img.youtube.com/vi/NuEfvIca0XU/mqdefault.jpg';
setup_youtube_listener(chan);
//Materialize.toast("Passwords have been reset. If anything is not right, please send us a mail @ contact@zoff.no", 10000);
$("#settings").sideNav({