fix notification message
This commit is contained in:
parent
a3fbdf5859
commit
b8f43a6853
2
owe.js
2
owe.js
@ -116,7 +116,7 @@ async function sendWord() {
|
||||
function displayNotification(word) {
|
||||
if (Notification.permission == 'granted') {
|
||||
navigator.serviceWorker.getRegistration().then(function(reg) {
|
||||
reg.showNotification("Neuer Satz auf " + (config_data.title ? config_data.title : "OWE"),
|
||||
reg.showNotification("Neuer Beitrag auf " + (config_data.title ? config_data.title : "OWE"),
|
||||
{ body: word, icon: (config_data.logo? config_data.logo.image_path : "OWE_Logo.png"), requireInteraction: true });
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user