define uiRootPath var in head instead of footer
authorDan Allen <dan@opendevise.com>
Sat, 12 Dec 2020 10:42:35 +0000 (03:42 -0700)
committerDan Allen <dan@opendevise.com>
Sat, 12 Dec 2020 10:42:35 +0000 (03:42 -0700)
src/partials/footer-scripts.hbs
src/partials/head-scripts.hbs

index b4f5fff..d106cd3 100644 (file)
@@ -1,3 +1,2 @@
-<script>window.uiRootPath = '{{{uiRootPath}}}'</script>
 <script src="{{{uiRootPath}}}/js/site.js"></script>
 <script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
index e7da2bb..3db8cee 100644 (file)
@@ -2,3 +2,4 @@
     <script async src="https://www.googletagmanager.com/gtag/js?id={{this}}"></script>
     <script>function gtag(){dataLayer.push(arguments)};window.dataLayer=window.dataLayer||[];gtag('js',new Date());gtag('config','{{this}}')</script>
     {{/with}}
+    <script>var uiRootPath = '{{{uiRootPath}}}'</script>