Skip to content

Commit

Permalink
Moved "apply selected theme" script to the header scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KyNorthstar committed Jan 26, 2021
1 parent b3d6792 commit b9c43c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions header-scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
<script src="https://shared.bhstudios.org/_js/jquery-bh-preferred.js">/* jQuery */</script>
<script src="https://scripts.bhstudios.org/assets/v2/general/js/lib/kotlin.js">/* Kotlin/JS for BHStudios General Script */</script>
<script src="https://scripts.bhstudios.org/assets/v2/general/js/BHStudios%20General%20Scripts.js">/* BHStudios General Script */</script>

<script>
if (undefined === window.localStorage["org.bh.theme"]) {
window.localStorage["org.bh.theme"] = JSON.stringify({"color":"{{ site.default-theme.color | default: 'water' }}","brightness":"{{ site.default-theme.brightness | default: 'dark' }}"})
}
</script>

0 comments on commit b9c43c1

Please sign in to comment.