diff options
Diffstat (limited to 'app/javascript/mastodon/main.js')
-rw-r--r-- | app/javascript/mastodon/main.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/mastodon/main.js b/app/javascript/mastodon/main.js index a7fc22a00..c85cd5800 100644 --- a/app/javascript/mastodon/main.js +++ b/app/javascript/mastodon/main.js @@ -29,6 +29,11 @@ function main() { WebPushSubscription.register(); } perf.stop('main()'); + + // remember the initial URL + if (window.history && typeof window._mastoInitialHistoryLen === 'undefined') { + window._mastoInitialHistoryLen = window.history.length; + } }); } |