Improved logic for auto-scroll toggle insertion

Updating the insertion logic to prepare for future UI improvements.
This commit is contained in:
patriceac 2022-11-25 22:51:49 -08:00
parent a2efda41d3
commit e02a917569

View File

@ -13,7 +13,7 @@
autoScrollControl.innerHTML = `<input id="auto_scroll" name="auto_scroll" type="checkbox">
<label for="auto_scroll">Auto-scroll</label>`
autoScrollControl.className = "auto-scroll"
previewTools.appendChild(autoScrollControl)
clearAllPreviewsBtn.parentNode.insertBefore(autoScrollControl, clearAllPreviewsBtn.nextSibling)
prettifyInputs(document);
let autoScroll = document.querySelector("#auto_scroll")