Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
defims committed Dec 5, 2023
1 parent bef8483 commit a13ab19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/shared_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use tao::{
};
use wry::WebViewBuilder;

// Currently, only Windows platforms support shared_buffer.
#[cfg(target_os = "windows")]
fn main() -> wry::Result<()> {
use wry::WebViewExtWindows;
Expand Down Expand Up @@ -120,12 +121,13 @@ fn main() -> wry::Result<()> {
});
}

// Non-Windows systems do not yet support shared_buffer.
#[cfg(not(target_os = "windows"))]
fn main() -> wry::Result<()> {
let event_loop = tao::event_loop::EventLoop::new();
let window = WindowBuilder::new().build(&event_loop).unwrap();

let webview = WebViewBuilder::new(&window)
let _ = WebViewBuilder::new(&window)
.with_url("https://tauri.app")?
.build()?;

Expand Down

0 comments on commit a13ab19

Please sign in to comment.