Fix: test code
This commit is contained in:
@@ -80,6 +80,7 @@ var Loading = {
|
|||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
this.state.start('Login');
|
// this.state.start('Login');
|
||||||
|
this.state.start('LicenseTimer');
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,9 +82,7 @@
|
|||||||
var timeOutEventID;
|
var timeOutEventID;
|
||||||
|
|
||||||
function ShowNotifyTimeOver(timeLeft) {
|
function ShowNotifyTimeOver(timeLeft) {
|
||||||
var isNotificationIsSupported = !!(window.Notification /* W3C Specification */ || win.webkitNotifications /* old WebKit Browsers */ || navigator.mozNotification /* Firefox for Android and Firefox OS */)
|
if("Notification" in window) {
|
||||||
|
|
||||||
if(isNotificationIsSupported) {
|
|
||||||
if(Notification) { // prepared browser for using Notification
|
if(Notification) { // prepared browser for using Notification
|
||||||
if(Notification.permission === "granted") {
|
if(Notification.permission === "granted") {
|
||||||
AddNotifyEventByNotification(timeLeft);
|
AddNotifyEventByNotification(timeLeft);
|
||||||
|
|||||||
Reference in New Issue
Block a user