forked from rDrama/rDrama
1
0
Fork 0

id_after -> permalink_after

master
Aevann 2024-01-31 21:20:21 +02:00
parent e91fdd4159
commit 1ac79577ae
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
const post_permalinks = sessionStorage.getItem("post_permalinks").split(', ');
const current_index = post_permalinks.indexOf(`'${location.href}'`)
if (current_index > -1) {
const id_after = post_permalinks[current_index+1]
const permalink_after = post_permalinks[current_index+1]
if (id_after) {
if (permalink_after) {
for (const btn of document.getElementsByClassName('post_navigation')) {
btn.classList.remove('d-none')
btn.href = id_after.slice(1, -1)
btn.href = permalink_after.slice(1, -1)
}
}
}