mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
eframe: warn if web_sys_unstable_apis was not set
This commit is contained in:
@@ -526,6 +526,11 @@ pub async fn start(
|
|||||||
web_options: crate::WebOptions,
|
web_options: crate::WebOptions,
|
||||||
app_creator: epi::AppCreator,
|
app_creator: epi::AppCreator,
|
||||||
) -> Result<AppRunnerRef, JsValue> {
|
) -> Result<AppRunnerRef, JsValue> {
|
||||||
|
#[cfg(not(web_sys_unstable_apis))]
|
||||||
|
tracing::warn!(
|
||||||
|
"eframe compiled without RUSTFLAGS='--cfg=web_sys_unstable_apis'. Copying text won't work."
|
||||||
|
);
|
||||||
|
|
||||||
let mut runner = AppRunner::new(canvas_id, web_options, app_creator).await?;
|
let mut runner = AppRunner::new(canvas_id, web_options, app_creator).await?;
|
||||||
runner.warm_up()?;
|
runner.warm_up()?;
|
||||||
start_runner(runner)
|
start_runner(runner)
|
||||||
|
|||||||
Reference in New Issue
Block a user