@@ -11,10 +11,9 @@ pub fn send<T: 'static>(
1111 crate :: execute_promise (
1212 webview,
1313 move || {
14- let mut notification = tauri_api:: notification:: Notification :: new ( ) ;
15- notification = notification. body ( options. body ) ;
16- if let Some ( title) = options. title {
17- notification = notification. title ( title) ;
14+ let mut notification = tauri_api:: notification:: Notification :: new ( ) . title ( options. title ) ;
15+ if let Some ( body) = options. body {
16+ notification = notification. body ( body) ;
1817 }
1918 if let Some ( icon) = options. icon {
2019 notification = notification. icon ( icon) ;
@@ -56,8 +55,8 @@ pub fn request_permission<T: 'static>(
5655 webview,
5756 move || {
5857 let mut settings = crate :: settings:: read_settings ( ) ?;
59- let granted = r#"" granted""# . to_string ( ) ;
60- let denied = r#"" denied""# . to_string ( ) ;
58+ let granted = " granted". to_string ( ) ;
59+ let denied = " denied". to_string ( ) ;
6160 if let Some ( allow_notification) = settings. allow_notification {
6261 return Ok ( if allow_notification { granted } else { denied } ) ;
6362 }
@@ -76,7 +75,7 @@ pub fn request_permission<T: 'static>(
7675 crate :: settings:: write_settings ( settings) ?;
7776 Ok ( denied)
7877 }
79- _ => Ok ( r#"" default""# . to_string ( ) ) ,
78+ _ => Ok ( " default". to_string ( ) ) ,
8079 }
8180 } ,
8281 callback,
0 commit comments