Removed feature cfg from examples
This commit is contained in:
parent
d0d99df147
commit
466d64542e
|
@ -22,7 +22,6 @@ impl AppDelegate for BasicApp {
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct WebViewInstance;
|
pub struct WebViewInstance;
|
||||||
|
|
||||||
#[cfg(feature = "webview")]
|
|
||||||
impl WebViewDelegate for WebViewInstance {
|
impl WebViewDelegate for WebViewInstance {
|
||||||
fn on_custom_protocol_request(&self, path: &str) -> Option<Vec<u8>> {
|
fn on_custom_protocol_request(&self, path: &str) -> Option<Vec<u8>> {
|
||||||
let requested_asset_path = path.replace("cacao://", "");
|
let requested_asset_path = path.replace("cacao://", "");
|
||||||
|
@ -63,11 +62,9 @@ impl WebViewDelegate for WebViewInstance {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AppWindow {
|
struct AppWindow {
|
||||||
#[cfg(feature = "webview")]
|
|
||||||
content: WebView<WebViewInstance>
|
content: WebView<WebViewInstance>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "webview")]
|
|
||||||
impl AppWindow {
|
impl AppWindow {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let mut webview_config = WebViewConfig::default();
|
let mut webview_config = WebViewConfig::default();
|
||||||
|
|
Loading…
Reference in a new issue