Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions plotly_static/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ impl AsyncStaticExporter {
client.goto(&url).await?;

#[cfg(target_os = "windows")]
Self::wait_for_document_ready(&client, std::time::Duration::from_secs(10)).await?;
Self::wait_for_document_ready(&client, std::time::Duration::from_secs(20)).await?;

// Wait for Plotly container element
#[cfg(target_os = "windows")]
Expand Down Expand Up @@ -1200,13 +1200,13 @@ impl AsyncStaticExporter {
if has_el.as_bool().unwrap_or(false) {
return Ok(());
}
if start.elapsed() > timeout {
return Err(anyhow!(
"Timeout waiting for #plotly-html-element to appear in DOM"
));
}
tokio::time::sleep(std::time::Duration::from_millis(50)).await;
}
if start.elapsed() > timeout {
return Err(anyhow!(
"Timeout waiting for #plotly-html-element to appear in DOM"
));
}
tokio::time::sleep(std::time::Duration::from_millis(50)).await;
}

#[cfg(target_os = "windows")]
Expand Down
Loading