Skip to content

Commit

Permalink
avoid timeout error when loading dependency after startup
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Sep 22, 2022
1 parent 1172ff5 commit 89c53c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ def add_dependencies(py_filepath: str, dependencies: List[str] = []) -> None:
async def reload() -> None:
for page in get_current_view().pages.values():
assert isinstance(page, Page)
await page.await_javascript('console.log("RELOAD"); location.reload()')
await page.run_javascript('location.reload()')
create_task(reload())

0 comments on commit 89c53c7

Please sign in to comment.