Skip to content

Commit

Permalink
Merge branch 'main' of github.com:zauberzeug/nicegui
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Sep 5, 2021
2 parents 2786134 + df86c75 commit 73b27f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion nicegui/nicegui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
wp = jp.QuasarPage(delete_flag=False, title=Ui.config.title, favicon=Ui.config.favicon)
wp.tailwind = True # use Tailwind classes instead of Quasars
wp.css = HtmlFormatter().get_style_defs('.codehilite')
wp.head_html += '<script>confirm = () => true;</script>\n' # avoid confirmation dialog for reload
wp.head_html += '''
<script>
confirm = () => { setTimeout(location.reload.bind(location), 100); return false; };
</script>
''' # avoid confirmation dialog for reload

main = jp.Div(a=wp, classes='q-ma-md column items-start', style='row-gap: 1em')
main.add_page(wp)
Expand Down
2 changes: 1 addition & 1 deletion nicegui/static/templates/js/event_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ function send_to_server(e, event_type, debug_flag) {
}
}

// {% endraw %}
// {% endraw %}

0 comments on commit 73b27f6

Please sign in to comment.