From f9323f87b84ce3f4091ecf5ede00ff3ddec8d053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Tue, 11 Dec 2018 11:05:04 +0900 Subject: [PATCH] Fix : test code --- src/web/client/license_timer.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/client/license_timer.html b/src/web/client/license_timer.html index 83a350c..7275fe3 100644 --- a/src/web/client/license_timer.html +++ b/src/web/client/license_timer.html @@ -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