Fixed theme switching

This commit is contained in:
Eduard Urbach 2018-03-23 22:02:43 +01:00
parent ccd6e860cf
commit 04ecbd737a

View File

@ -162,8 +162,9 @@ export class Application {
continue
}
// Don't ajaxify links with a target or links that disable ajax specifically
if(link.target.length > 0 || link.dataset.ajax === "false") {
// Don't ajaxify invalid links, links with a target or links that disable ajax specifically
console.log(link.hash)
if(link.href === "" || link.href.includes("#") || link.target.length > 0 || link.dataset.ajax === "false") {
continue
}