diff --git a/examples/webview_custom_protocol.rs b/examples/webview_custom_protocol.rs index 5a8a3f9..7b326a8 100644 --- a/examples/webview_custom_protocol.rs +++ b/examples/webview_custom_protocol.rs @@ -22,7 +22,6 @@ impl AppDelegate for BasicApp { #[derive(Default)] pub struct WebViewInstance; -#[cfg(feature = "webview")] impl WebViewDelegate for WebViewInstance { fn on_custom_protocol_request(&self, path: &str) -> Option> { let requested_asset_path = path.replace("cacao://", ""); @@ -63,11 +62,9 @@ impl WebViewDelegate for WebViewInstance { } struct AppWindow { - #[cfg(feature = "webview")] content: WebView } -#[cfg(feature = "webview")] impl AppWindow { pub fn new() -> Self { let mut webview_config = WebViewConfig::default();