mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
removed old obsolete code
This commit is contained in:
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -174,7 +174,7 @@ var Youtube = {
|
|||||||
|
|
||||||
notifyUser: function(id, title) {
|
notifyUser: function(id, title) {
|
||||||
title = title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&");
|
title = title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&");
|
||||||
if (Notification.permission === "granted" && document.hidden && id != "30H2Z8Lr-4c" && !window.mobilecheck()) {
|
if (Notification.permission === "granted" && document.hidden) {
|
||||||
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"});
|
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"});
|
||||||
notification.onclick = function(x) { window.focus(); this.cancel(); };
|
notification.onclick = function(x) { window.focus(); this.cancel(); };
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user