Commit f786b35c authored by minseok.park's avatar minseok.park

test logo url

parent cbf785ee
Pipeline #20765 passed with stages
in 3 minutes and 46 seconds
/* eslint-disable no-undef */
const logo = document.querySelector('.navbar-brand > a')
function removeSecretNav () {
const elements = document.getElementsByClassName('secret-nav')
while (elements.length > 0) {
......@@ -10,6 +13,9 @@ fetch('/web/dms/api/auth/status')
.then((response) => {
if (response.url === 'https://swlab.bwg.co.kr/web/dms/login') {
removeSecretNav()
logo.setAttribute('href', 'https://swlab.bwg.co.kr')
} else {
logo.setAttribute('href', 'https://swlab.bwg.co.kr/web/dms/home')
}
})
.catch((error) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment