1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Make use of AppRunnerRef

Follow-up to #1650
This commit is contained in:
Emil Ernerfeldt
2022-08-02 17:37:12 +02:00
parent 64496cacb9
commit 263c9bd601
3 changed files with 7 additions and 18 deletions

View File

@@ -6,13 +6,7 @@ pub(crate) mod frame_history;
mod wrap_app;
#[cfg(target_arch = "wasm32")]
use std::sync::Arc;
#[cfg(target_arch = "wasm32")]
use eframe::web::AppRunner;
#[cfg(target_arch = "wasm32")]
use egui::mutex::Mutex;
use eframe::web::AppRunnerRef;
pub use wrap_app::WrapApp;
@@ -31,7 +25,7 @@ use eframe::wasm_bindgen::{self, prelude::*};
#[cfg(target_arch = "wasm32")]
#[wasm_bindgen]
pub struct WebHandle {
handle: Arc<Mutex<AppRunner>>,
handle: AppRunnerRef,
}
#[cfg(target_arch = "wasm32")]