Skip to content

Commit

Permalink
Disable prompt for appstore and single app page (#154)
Browse files Browse the repository at this point in the history
This is a follow up on #141 where we disabled the alert prompt when leaving the home page. We've been using it for quite a while since and haven't noticed any issues so it's time to apply to other apps / pages.
In the future, we should ideally apply this fix directly in Appmode, but that will require more work so for now here's just a simple hotfix.
  • Loading branch information
danielhollas authored Jul 26, 2023
1 parent 041c240 commit 0f6e61a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appstore.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"%%javascript\n",
"IPython.OutputArea.prototype._should_scroll = function(lines) {\n",
" return false;\n",
"}\n",
"if (document.getElementById('appmode-busy')) {\n",
" window.onbeforeunload = function() {return}\n",
"}"
]
},
Expand Down
3 changes: 3 additions & 0 deletions single_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"%%javascript\n",
"IPython.OutputArea.prototype._should_scroll = function(lines) {\n",
" return false;\n",
"}\n",
"if (document.getElementById('appmode-busy')) {\n",
" window.onbeforeunload = function() {return}\n",
"}"
]
},
Expand Down

0 comments on commit 0f6e61a

Please sign in to comment.