fix link rendering

This commit is contained in:
Milan Hauth 2023-08-07 16:30:06 +02:00
parent c312a3249e
commit fd8b6f5e86

View file

@ -830,7 +830,7 @@
//['gg6zxtreajiijztyy5g6bt5o6l3qu32nrg7eulyemlhxwwl6enk6ghad.onion/milahu/alchi', 'Mirror'],
];
var linkOffset = 1; // which link is first in linkList
var linkIdx = (Math.floor(page.number / 2) + linkOffset) % linkList.length;
var linkIdx = (Math.floor(page.number / 2) - linkOffset) % linkList.length;
var link = linkList[linkIdx][0];
var desc = linkList[linkIdx][1];
var href = `https://${link}`;