mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-30 11:10:24 +00:00
chore(dom) Notify
This commit is contained in:
parent
7eaf2e266d
commit
1a6a1ca3b5
1 changed files with 4 additions and 2 deletions
|
|
@ -643,7 +643,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
};
|
||||
},
|
||||
NotifyProto = function() {
|
||||
var Show, Allow, Notify = this;
|
||||
var Show, Allow,
|
||||
Notify = this,
|
||||
Notification = window.Notification;
|
||||
|
||||
Events.add({
|
||||
'blur' :function() {
|
||||
|
|
@ -683,7 +685,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
};
|
||||
|
||||
this.request = function () {
|
||||
var Not = window.Notification;
|
||||
var Not = Notification;
|
||||
|
||||
if (Not)
|
||||
Not.requestPermission();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue