Fabrice-TIERCELIN commited on
Commit
46e1dcb
·
verified ·
1 Parent(s): fdc65b5
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -956,12 +956,6 @@ title_html = """
956
 
957
  css = make_progress_bar_css()
958
  js = """
959
- window.addEventListener("beforeunload", function (e) {
960
- var confirmationMessage = 'It looks like you have been editing something. If you leave before saving, your changes will be lost.';
961
-
962
- (e || window.event).returnValue = confirmationMessage;
963
- return confirmationMessage;
964
- });
965
  """
966
  block = gr.Blocks(css=css, js=js).queue()
967
  with block:
 
956
 
957
  css = make_progress_bar_css()
958
  js = """
 
 
 
 
 
 
959
  """
960
  block = gr.Blocks(css=css, js=js).queue()
961
  with block: