forked from rDrama/rDrama
im retardo
parent
fb8866905f
commit
f2b8e1c6c5
|
@ -1,4 +1,7 @@
|
||||||
const post_permalinks = sessionStorage.getItem("post_permalinks").split(', ');
|
let post_permalinks = sessionStorage.getItem("post_permalinks")
|
||||||
|
|
||||||
|
if (post_permalinks) {
|
||||||
|
post_permalinks = post_permalinks.split(', ');
|
||||||
const current_index = post_permalinks.indexOf(`'${location.href}'`)
|
const current_index = post_permalinks.indexOf(`'${location.href}'`)
|
||||||
if (current_index > -1) {
|
if (current_index > -1) {
|
||||||
const permalink_after = post_permalinks[current_index+1]
|
const permalink_after = post_permalinks[current_index+1]
|
||||||
|
@ -10,3 +13,4 @@ if (current_index > -1) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue