1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Fix javascript console.error case

This commit is contained in:
Afterster 2014-10-17 12:45:01 +02:00
parent 705bd97b00
commit abf4920a39
2 changed files with 3 additions and 3 deletions

View file

@ -328,7 +328,7 @@ function geolocate_user() {
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(geolocate_user_callback);
} else {
Console.error("This browser does not support geolocation");
console.error("This browser does not support geolocation");
}
}

View file

@ -77,7 +77,7 @@ if ($iframed) {
function NotifyOfNewSong(title, artist, icon)
{
if (!("Notification" in window)) {
Console.error("This browser does not support desktop notification");
console.error("This browser does not support desktop notification");
} else {
if (Notification.permission !== 'denied') {
if (Notification.permission === 'granted') {
@ -91,7 +91,7 @@ function NotifyOfNewSong(title, artist, icon)
});
}
} else {
Console.error("Desktop notification denied.");
console.error("Desktop notification denied.");
}
}
}