charliebaby2023 commited on
Commit
6e59c95
1 Parent(s): 0318f31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ document.addEventListener('DOMContentLoaded', function() {
81
  const observer = new MutationObserver(function(mutations) {
82
  for (let mutation of mutations) {
83
  if (mutation.addedNodes.length && mutation.addedNodes[0].classList.contains('alert')) {
84
- window.scrollTo({top: window.scrollY});
85
  }
86
  }
87
  });
 
81
  const observer = new MutationObserver(function(mutations) {
82
  for (let mutation of mutations) {
83
  if (mutation.addedNodes.length && mutation.addedNodes[0].classList.contains('alert')) {
84
+ window.scrollTo({top: 50%});
85
  }
86
  }
87
  });