diff --git a/plugins/persisted-scope/src/lib.rs b/plugins/persisted-scope/src/lib.rs index 6698f278..00396ac1 100644 --- a/plugins/persisted-scope/src/lib.rs +++ b/plugins/persisted-scope/src/lib.rs @@ -55,6 +55,7 @@ pub fn init() -> TauriPlugin { .into_iter() .map(|p| p.to_string()) .collect(); + #[cfg(feature = "protocol-asset")] let initial_asset_allowed: Vec = asset_protocol_scope .allowed_patterns() .into_iter() @@ -65,6 +66,7 @@ pub fn init() -> TauriPlugin { .into_iter() .map(|p| p.to_string()) .collect(); + #[cfg(feature = "protocol-asset")] let initial_asset_forbidden: Vec = asset_protocol_scope .forbidden_patterns() .into_iter()