Lock down all tauri apis, since we're currently not using any of them (except shell, which we're only using to open the help site, and I decided to just remove that functionality since we already have that in the "inner" app itself)
This commit is contained in:
parent
310b2f8bc5
commit
f547e5bcba
|
@ -4,7 +4,6 @@
|
|||
)]
|
||||
|
||||
use crate::menu::AddDefaultSubmenus;
|
||||
use tauri::api::shell;
|
||||
use tauri::{Menu};
|
||||
|
||||
mod menu;
|
||||
|
@ -20,21 +19,7 @@ fn main() {
|
|||
.add_default_file_submenu()
|
||||
.add_default_edit_submenu()
|
||||
.add_default_window_submenu()
|
||||
.add_default_help_submenu(),
|
||||
)
|
||||
.on_menu_event(|event| {
|
||||
let event_name = event.menu_item_id();
|
||||
match event_name {
|
||||
"get_help" => {
|
||||
shell::open(
|
||||
"https://padloc.app/help/".to_string(),
|
||||
None,
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
})
|
||||
.run(ctx)
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM5NDMxQ0I3MTA3NDU3RjIKUldUeVYzUVF0eHhET1ZpNUZDYWY3Zlk1aUN1ZkpXcU5wS0pSTERSay91ODBpWlBIcTViNk11RHgK"
|
||||
},
|
||||
"allowlist": {
|
||||
"all": true
|
||||
"all": false
|
||||
},
|
||||
"windows": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue