forked from rDrama/rDrama
1
0
Fork 0

im retardo

master
Aevann 2024-02-03 05:42:04 +02:00
parent fb8866905f
commit f2b8e1c6c5
1 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,9 @@
const post_permalinks = sessionStorage.getItem("post_permalinks").split(', ');
const current_index = post_permalinks.indexOf(`'${location.href}'`)
if (current_index > -1) {
let post_permalinks = sessionStorage.getItem("post_permalinks")
if (post_permalinks) {
post_permalinks = post_permalinks.split(', ');
const current_index = post_permalinks.indexOf(`'${location.href}'`)
if (current_index > -1) {
const permalink_after = post_permalinks[current_index+1]
if (permalink_after) {
@ -9,4 +12,5 @@ if (current_index > -1) {
btn.href = permalink_after.slice(1, -1)
}
}
}
}