about summary refs log tree commit diff
path: root/app/javascript/core
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/core')
-rw-r--r--app/javascript/core/public.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/javascript/core/public.js b/app/javascript/core/public.js
index b5014a8c7..f00709dad 100644
--- a/app/javascript/core/public.js
+++ b/app/javascript/core/public.js
@@ -6,16 +6,6 @@ import ready from '../mastodon/ready';
 const { delegate } = require('rails-ujs');
 const { length } = require('stringz');
 
-ready(() => {
-  const history = createHistory();
-  const detailedStatuses = document.querySelectorAll('.public-layout .detailed-status');
-  const location = history.location;
-  if (detailedStatuses.length == 1 && (!location.state || !location.state.scrolledToDetailedStatus)) {
-    detailedStatuses[0].scrollIntoView();
-    history.replace(location.pathname, {...location.state, scrolledToDetailedStatus: true});
-  }
-});
-
 delegate(document, '.webapp-btn', 'click', ({ target, button }) => {
   if (button !== 0) {
     return true;