mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 15:47:36 +02:00
Co-authored-by: Alex Fornuto <alex@fornuto.com>
This commit is contained in:
parent
56c303d843
commit
47d4140812
1 changed files with 27 additions and 0 deletions
|
@ -229,4 +229,31 @@ module.exports = {
|
|||
],
|
||||
},
|
||||
},
|
||||
head: [
|
||||
//Hack: Make clicking on the logo go to home url
|
||||
["script",
|
||||
{},
|
||||
`
|
||||
const logoUrlChanger = setInterval(function() {
|
||||
//Anchor above the logo image
|
||||
const homeEls = document.getElementsByClassName("home-link");
|
||||
if(homeEls.length > 0) {
|
||||
const homeEl = homeEls[0];
|
||||
homeEl.setAttribute("href", "https://www.pomerium.com");
|
||||
homeEl.setAttribute("onclick", "document.location='https://www.pomerium.com';return false;");
|
||||
clearInterval(logoUrlChanger);
|
||||
}
|
||||
|
||||
//Actual logo image
|
||||
const logoEls = document.getElementsByClassName("logo")
|
||||
if(logoEls.length > 0) {
|
||||
const logoEl = logoEls[0]
|
||||
logoEl.setAttribute("onclick", "document.location='https://www.pomerium.com';return false;");
|
||||
clearInterval(logoUrlChanger);
|
||||
}
|
||||
}, 1000)
|
||||
|
||||
`
|
||||
]
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue