about summary refs log tree commit diff
path: root/app/javascript/core/public.js
diff options
context:
space:
mode:
authorpluralcafe-docker <git@plural.cafe>2019-01-12 04:24:01 +0000
committerpluralcafe-docker <git@plural.cafe>2019-01-12 04:24:01 +0000
commita6e0ff72f552dc172c18f5a10bbca071b067ab51 (patch)
treef845d5a7e328c3babfde43066325262c1dbdbed0 /app/javascript/core/public.js
parent74134e490c49d8a7d88cc69720e22cd88cee9233 (diff)
parent2cfa55185a5fc7d93a160a4e9a4730aae6725b0f (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'app/javascript/core/public.js')
-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;