mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 02:09:23 +02:00
Fix javascript console.error case
This commit is contained in:
parent
705bd97b00
commit
abf4920a39
2 changed files with 3 additions and 3 deletions
|
@ -328,7 +328,7 @@ function geolocate_user() {
|
||||||
if(navigator.geolocation) {
|
if(navigator.geolocation) {
|
||||||
navigator.geolocation.getCurrentPosition(geolocate_user_callback);
|
navigator.geolocation.getCurrentPosition(geolocate_user_callback);
|
||||||
} else {
|
} else {
|
||||||
Console.error("This browser does not support geolocation");
|
console.error("This browser does not support geolocation");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ if ($iframed) {
|
||||||
function NotifyOfNewSong(title, artist, icon)
|
function NotifyOfNewSong(title, artist, icon)
|
||||||
{
|
{
|
||||||
if (!("Notification" in window)) {
|
if (!("Notification" in window)) {
|
||||||
Console.error("This browser does not support desktop notification");
|
console.error("This browser does not support desktop notification");
|
||||||
} else {
|
} else {
|
||||||
if (Notification.permission !== 'denied') {
|
if (Notification.permission !== 'denied') {
|
||||||
if (Notification.permission === 'granted') {
|
if (Notification.permission === 'granted') {
|
||||||
|
@ -91,7 +91,7 @@ function NotifyOfNewSong(title, artist, icon)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Console.error("Desktop notification denied.");
|
console.error("Desktop notification denied.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue