]> cat aescling's git repositories - mastodon.git/commit
Fix timeline markers not working on Chrome (#13887)
authorThibG <thib@sitedethib.com>
Fri, 29 May 2020 14:14:16 +0000 (16:14 +0200)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 14:14:16 +0000 (16:14 +0200)
commit5aff2a6957e861162d67c4610277e9bb2a6f8186
tree4538c14ca0428d99749c86a1634efd4263e490c8
parent8bbc81c71e245c47a98b1de833557b38ad64a55d
Fix timeline markers not working on Chrome (#13887)

* Periodically save timeline markers

This saves timeline markers immediately upon message arrival, but not more
than once every 5 minutes.

This does not change how the markers are saved on closing the window,
except that it avoids submitting them if there is no need for it.

* Use the Fetch API when possible instead of XHR on window unload
app/javascript/mastodon/actions/markers.js
app/javascript/mastodon/actions/notifications.js
app/javascript/mastodon/actions/timelines.js
app/javascript/mastodon/features/ui/index.js
app/javascript/mastodon/reducers/index.js
app/javascript/mastodon/reducers/markers.js [new file with mode: 0644]