diff options
author | pluralcafe-docker <git@plural.cafe> | 2019-01-12 04:24:14 +0000 |
---|---|---|
committer | pluralcafe-docker <git@plural.cafe> | 2019-01-12 04:24:14 +0000 |
commit | ae24ef877b82466cab026a76ea6ed8598ddaae18 (patch) | |
tree | 584c25ada377f2e6da49a9b45b3da947501b1831 /app/javascript/core | |
parent | fa1ab7fbe4166f3d8b481891dcc443df5aa212bb (diff) | |
parent | 2cfa55185a5fc7d93a160a4e9a4730aae6725b0f (diff) |
Merge branch 'glitch'
Diffstat (limited to 'app/javascript/core')
-rw-r--r-- | app/javascript/core/public.js | 10 |
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; |