Commit 7583497b authored by minseok.park's avatar minseok.park

fix lint

parent 9107f981
......@@ -3,10 +3,10 @@
const logo = document.getElementById('logo')
function getCookie(name) {
let cookies = document.cookie.split(';')
function getCookie (name) {
const cookies = document.cookie.split(';')
for (let i = 0; i < cookies.length; i++) {
let cookie = cookies[i].trim()
const cookie = cookies[i].trim()
if (cookie.startsWith(name + '=')) {
return cookie.substring(name.length + 1)
}
......@@ -15,17 +15,17 @@
}
document.addEventListener('DOMContentLoaded', function () {
let jsessionid = getCookie('JSESSIONID')
const jsessionid = getCookie('JSESSIONID')
if (jsessionid) {
// JSESSIONID 쿠키 값이 있을 경우 추가할 a 태그 생성
let newLink = document.createElement('a')
const newLink = document.createElement('a')
newLink.className = 'navbar-item'
newLink.href = 'https://swlab.bwg.co.kr/web/docs/bxm/swlab-docs-bxm-s/current/concepts/overview.html'
newLink.textContent = 'BXM Concepts Overview'
// 기존 BXM 링크 바로 아래에 삽입
let bxmLink = document.querySelector(
const bxmLink = document.querySelector(
'.navbar-dropdown .navbar-item[href="https://swlab.bwg.co.kr/web/docs/bxm/swlab-docs-bxm/current/index.html"]'
)
if (bxmLink) {
......
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