Commit 7970e10b authored by 박민석's avatar 박민석

check version length

parent 86ed0c81
Pipeline #20924 failed with stages
in 1 minute and 56 seconds
......@@ -5,9 +5,11 @@
if (!toggle) return
var selector = document.querySelector('.page-versions')
console.log("page-versions >>>>>", selector)
var backdrop = document.querySelector('.backdrop')
var versionMenu = document.querySelector('.version-menu')
var versions = versionMenu?.querySelectorAll('.version')
console.log("version >>>>>", versions)
toggle.addEventListener('click', function (e) {
if (!versions.length) return
......
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