about summary refs log tree commit diff
path: root/app/javascript/core
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-01-10 12:24:02 +0100
committerThibG <thib@sitedethib.com>2019-01-10 18:45:17 +0100
commitd1da0a1086fa25f22739277fbf32ba1b3745317d (patch)
treec7165cb6dd66e807733e7fe75c81c1e739b1e824 /app/javascript/core
parente8ae77236be07935c0dd03795d9de1db71d4283e (diff)
Port a few public.js changes from upstream, move some code around
glitch-soc's public.js was a bit out of date, and code was put inappropriately
to the common public.js
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;