0
Hi Germi,
I noticed that all new users see the 'Show desktop notifications' in their browser and personally i don't like it when sites do that. I know it's one click but it's not user friendly in my opinion. Now i tried to disable it by going to config/general/Show desktop notifications but i still get the message...
What part am i missing?
I noticed that all new users see the 'Show desktop notifications' in their browser and personally i don't like it when sites do that. I know it's one click but it's not user friendly in my opinion. Now i tried to disable it by going to config/general/Show desktop notifications but i still get the message...
What part am i missing?
Responses (9)
-
Accepted Answer
-
Accepted Answer
0Hi Germi,
I looked at a slightly different path as the one you mentioned aint there
/plugins/muscolplayers/jwplayer/jwplayer/jwplayer_functions.js
In there i have this code starting at line 165 until the end of the file
========
//http://jsbin.com/ziwod/2/edit?html,js,output
// request permission on page load
document.addEventListener('DOMContentLoaded', function () {
if (Notification.permission !== "granted")
Notification.requestPermission();
});
function notify_song(song) {
if (desktopnotifications) {
if (!Notification) {
alert('Desktop notifications not available in your browser. Try Chromium.');
return;
}
if (Notification.permission !== "granted")
Notification.requestPermission();
else {
var notification = new Notification(song.item.title, {
icon: song.item.image,
body: song.item.description
});
setTimeout(function(){
notification.close();
},3000);
notification.onclick = function () {
//window.open("http://stackoverflow.com/a/13328397/1269037");
};
}
}
}
=======
How should i adjust this? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »