Commit 5cd36372 authored by minseok.park's avatar minseok.park

rollback

parent 7aa2d5df
......@@ -16,11 +16,11 @@
download.addEventListener('click', function () {
var pathname = window.location.pathname
var path = pathname.split('/')
var filename = path[4] ? path[4] === 'swlab-docs' ? 'docs' : `docs-${path[4]}` : ''
var directory = path[4] && path[5] ? path[4] === 'swlab-docs' ? path[4] : path[5] : ''
var filename = path[3] ? path[3] === 'swlab-docs' ? 'docs' : `docs-${path[3]}` : ''
var directory = path[3] && path[4] ? path[3] === 'swlab-docs' ? path[3] : path[4] : ''
var link = document.createElement('a')
link.href = `https://swlab.bwg.co.kr/web/dms/api/download-file?filename=${filename}.zip&directory=${directory}`
link.href = `https://swlab.bwg.co.kr/web/dms/download-file?filename=${filename}.zip&directory=${directory}`
link.click()
if (link.parentNode) {
......
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