Commit c97b2ed9 authored by 박민석's avatar 박민석

update header.js

parent e2d32c5f
Pipeline #21217 passed with stages
in 4 minutes and 9 seconds
......@@ -16,7 +16,9 @@
download.addEventListener('click', function () {
var pathname = window.location.pathname
var path = pathname.split('/')
var filename = path[3] ? path[3] === 'swlab-docs' ? 'docs' : `docs-${path[3]}` : ''
var isInternal = path[4].includes('-s')
var filename = path[3] ? path[3] === 'swlab-docs'
? 'docs' : isInternal ? `docs-${path[3]}-s` : `docs-${path[3]}` : ''
var directory = path[3] && path[4] ? path[3] === 'swlab-docs' ? path[3] : path[4] : ''
var link = document.createElement('a')
......
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