fix compilation with asset-protocol feature flag enabled

pull/328/head
FabianLars 2 years ago
parent 62af9c13d9
commit fe8b67736a
No known key found for this signature in database
GPG Key ID: 3B12BC1DEBF61125

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

Loading…
Cancel
Save