js/mod/recent_posts.js: Don't fetch new posts beyond the first page
This commit is contained in:
parent
663339923f
commit
ac71dfc8d2
|
@ -3,7 +3,7 @@
|
||||||
* @author jonsmy
|
* @author jonsmy
|
||||||
*/
|
*/
|
||||||
$().ready(() => {
|
$().ready(() => {
|
||||||
if (LCNSite.INSTANCE.isModRecentsPage()) {
|
if (LCNSite.INSTANCE.isModRecentsPage() && !location.search.includes("&last")) {
|
||||||
const loadIntFromStorage = key => {
|
const loadIntFromStorage = key => {
|
||||||
const value = localStorage.getItem(`jon-liveposts::${key}`)
|
const value = localStorage.getItem(`jon-liveposts::${key}`)
|
||||||
return value != null ? parseInt(value) : null
|
return value != null ? parseInt(value) : null
|
||||||
|
|
Loading…
Reference in New Issue