mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 04:15:38 +00:00
Don't update url when autoloading next page
It seemed like a great idea so reloads wouldn't lose progress, but it just became annoying.
This commit is contained in:
parent
92b3ba057d
commit
d20cddd15f
|
@ -25,7 +25,6 @@ window.onload = function() {
|
||||||
loadMore.children[0].text = "Loading...";
|
loadMore.children[0].text = "Loading...";
|
||||||
|
|
||||||
var url = new URL(loadMore.children[0].href);
|
var url = new URL(loadMore.children[0].href);
|
||||||
window.history.pushState('', '', url.toString());
|
|
||||||
url.searchParams.append('scroll', 'true');
|
url.searchParams.append('scroll', 'true');
|
||||||
|
|
||||||
fetch(url.toString()).then(function (response) {
|
fetch(url.toString()).then(function (response) {
|
||||||
|
|
Loading…
Reference in a new issue