From e45bf230c7e20cd82572788d27f7da59d607bd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Sun, 15 Feb 2015 17:00:56 +0100 Subject: [PATCH] Added support for firefox --- js/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/youtube.js b/js/youtube.js index 77959517..b38d3332 100755 --- a/js/youtube.js +++ b/js/youtube.js @@ -399,7 +399,7 @@ function setBGimage(id){ function notifyUser(id, title) { title= title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&"); if (Notification.permission === "granted" && !notified && document.hidden) { - var notification = new Notification("Now Playing", {body: title, icon: "http://i.ytimg.com/vi/"+id+"/hqdefault.jpg"}); + var notification = new Notification("Now Playing", {body: title, icon: "http://i.ytimg.com/vi/"+id+"/mqdefault.jpg", iconUrl: "http://i.ytimg.com/vi/"+id+"/mqdefault.jpg"}); setTimeout(function(){ notification.close(); },10000);