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