File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,20 @@ window.viteWalletStorage = appLocalStorage;
8
8
window . viteWalletRequest = appHttp ;
9
9
window . viteWalletI18n = appI18n ;
10
10
window . DESKTOP = true ;
11
- window . ipcRenderer = ipcRenderer ;
11
+ window . ipcRenderer = ipcRenderer ;
12
+
13
+ if ( Notification . permission === "granted" ) {
14
+ console . info ( 'Notification is granted.' ) ;
15
+ } else if ( Notification . permission !== 'denied' ) {
16
+ Notification . requestPermission ( function ( permission ) {
17
+ if ( permission === "granted" ) {
18
+ console . log ( 'Got notification permission' ) ;
19
+ }
20
+ if ( permission === 'default' ) {
21
+ console . log ( 'The permission request was dismissed.' ) ;
22
+ }
23
+ if ( permission === 'denied' ) {
24
+ console . log ( 'Permission wasn\'t granted. Allow a retry.' ) ;
25
+ }
26
+ } ) ;
27
+ }
You can’t perform that action at this time.
0 commit comments