Fix : test code
This commit is contained in:
@@ -85,11 +85,13 @@
|
||||
if("Notification" in window) {
|
||||
if(Notification) { // prepared browser for using Notification
|
||||
if(Notification.permission === "granted") {
|
||||
console.log("Notification - grated");
|
||||
AddNotifyEventByNotification(timeLeft);
|
||||
return;
|
||||
}
|
||||
|
||||
Notification.requestPermission(function (result) {
|
||||
console.log("result : " + result);
|
||||
Notification.permission = result;
|
||||
|
||||
if(result === "granted") {
|
||||
@@ -97,6 +99,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Notification - not grated : " + result);
|
||||
AddNotifyEventByAlert(timeLeft);
|
||||
});
|
||||
} else { // not prepared browser for using Notification
|
||||
|
||||
Reference in New Issue
Block a user