J
j-l-n
Guest
JSHint merkt mir an folgender Stelle "undefined variable (NotificationOptions)" an:
Wie kann ich das vermeiden? Außerdem meckert JSHint, wenn ich
Code:
var notificationOptions;
notificationOptions = {
dir: "auto",
lang: "de",
body: notificationMessage,
tag: notificationId
};
if(notificationArguments.icon) {
NotificationOptions.icon = notificationArguments.icon;
}
new Notification()
verwende statt new window.Notification()
...