Fixed theme switching
This commit is contained in:
parent
ccd6e860cf
commit
04ecbd737a
@ -162,8 +162,9 @@ export class Application {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't ajaxify links with a target or links that disable ajax specifically
|
// Don't ajaxify invalid links, links with a target or links that disable ajax specifically
|
||||||
if(link.target.length > 0 || link.dataset.ajax === "false") {
|
console.log(link.hash)
|
||||||
|
if(link.href === "" || link.href.includes("#") || link.target.length > 0 || link.dataset.ajax === "false") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user