Skip to content

Commit 0f6e61a

Browse files
authored
Disable prompt for appstore and single app page (#154)
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.
1 parent 041c240 commit 0f6e61a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

appstore.ipynb

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"%%javascript\n",
2020
"IPython.OutputArea.prototype._should_scroll = function(lines) {\n",
2121
" return false;\n",
22+
"}\n",
23+
"if (document.getElementById('appmode-busy')) {\n",
24+
" window.onbeforeunload = function() {return}\n",
2225
"}"
2326
]
2427
},

single_app.ipynb

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"%%javascript\n",
1010
"IPython.OutputArea.prototype._should_scroll = function(lines) {\n",
1111
" return false;\n",
12+
"}\n",
13+
"if (document.getElementById('appmode-busy')) {\n",
14+
" window.onbeforeunload = function() {return}\n",
1215
"}"
1316
]
1417
},

0 commit comments

Comments
 (0)