mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
web/pagenav: use pop() instead of at(-1)
This commit is contained in:
parent
dbb83b9e97
commit
eb90843fc9
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
let screenWidth: number;
|
let screenWidth: number;
|
||||||
|
|
||||||
$: currentPageTitle = $page.url.pathname.split("/").at(-1);
|
$: currentPageTitle = $page.url.pathname.split("/").pop();
|
||||||
$: stringPageTitle =
|
$: stringPageTitle =
|
||||||
currentPageTitle !== pageName
|
currentPageTitle !== pageName
|
||||||
? ` / ${$t(`${pageName}.page.${currentPageTitle}`)}`
|
? ` / ${$t(`${pageName}.page.${currentPageTitle}`)}`
|
||||||
|
Loading…
Reference in New Issue
Block a user