mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-29 14:04:19 +03:00
fix(core): remove $APP
from fs scope default
This commit is contained in:
parent
645b5a8b8a
commit
ff37a715ab
@ -599,16 +599,10 @@ macro_rules! check_feature {
|
||||
/// The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`,
|
||||
/// `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`,
|
||||
/// `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$CWD`.
|
||||
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
||||
#[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)]
|
||||
#[cfg_attr(feature = "schema", derive(JsonSchema))]
|
||||
pub struct FsAllowlistScope(pub Vec<PathBuf>);
|
||||
|
||||
impl Default for FsAllowlistScope {
|
||||
fn default() -> Self {
|
||||
Self(vec!["$APP/**".into()])
|
||||
}
|
||||
}
|
||||
|
||||
/// Allowlist for the file system APIs.
|
||||
#[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)]
|
||||
#[cfg_attr(feature = "schema", derive(JsonSchema))]
|
||||
|
Loading…
Reference in New Issue
Block a user