Fixed prev/next page keyboard navigation when footer is not present

This commit is contained in:
squidfunk
2022-12-14 21:49:43 +01:00
parent 26c08f1f38
commit 763423d30b
14 changed files with 43 additions and 26 deletions

View File

@@ -45,7 +45,7 @@ export function getLocation(): URL {
*
* @param url - URL to change to
*/
export function setLocation(url: URL): void {
export function setLocation(url: URL | HTMLLinkElement): void {
location.href = url.href
}