Skip to content

Commit

Permalink
sleep first
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored May 8, 2024
1 parent 5fccf67 commit d4a6bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tauri/src/endpoints/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ impl Cmd {
js: &'a str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>> {
Box::pin(async move {
tokio::time::sleep(std::time::Duration::from_millis(15)).await;
if window.eval(js).is_err() {
tokio::time::sleep(std::time::Duration::from_millis(15)).await;
eval(window, js).await;
}
})
Expand Down

0 comments on commit d4a6bc9

Please sign in to comment.