|
|
@ -90,7 +90,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
|
|
|
for allowed in &scope.allowed_paths {
|
|
|
|
for allowed in &scope.allowed_paths {
|
|
|
|
let allowed = fix_pattern(&ac, allowed);
|
|
|
|
let allowed = fix_pattern(&ac, allowed);
|
|
|
|
|
|
|
|
|
|
|
|
let _ = fs_scope.allow_file(&dbg!(allowed));
|
|
|
|
let _ = fs_scope.allow_file(allowed);
|
|
|
|
#[cfg(feature = "protocol-asset")]
|
|
|
|
#[cfg(feature = "protocol-asset")]
|
|
|
|
let _ = asset_protocol_scope.allow_file(&allowed);
|
|
|
|
let _ = asset_protocol_scope.allow_file(&allowed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|