assets/js/append-div.js in appscms-tools-theme-2.9.5 vs assets/js/append-div.js in appscms-tools-theme-2.9.6

- old
+ new

@@ -1,10 +1,10 @@ ---- ---- -function insertAfter(referenceNode, newNode) { - referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling) -} -let themeContentBox = document.getElementById('theme-content-box') -const div = document.createElement('div') -const profitablecpmgateId = '{{site.profitablecpmgateId}}' -div.setAttribute('id', `container-${profitablecpmgateId}`) -insertAfter(themeContentBox, div) +--- +--- +function insertAfter(referenceNode, newNode) { + referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling) +} +let themeContentBox = document.getElementById('theme-content-box') +const div = document.createElement('div') +const profitablecpmgateId = '{{site.profitablecpmgateId}}' +div.setAttribute('id', `container-${profitablecpmgateId}`) +insertAfter(themeContentBox, div)