Skip to content

Commit

Permalink
Console love
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Oct 14, 2023
1 parent b8f64a0 commit 22527fb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
7 changes: 5 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import htmx from "htmx.org"
import components from "./components"
import emailSpellChecker from "./emailSpellCheck"
import htmxLoader from "./htmx-loader"
import timezoneDetect from "./timezone"

import logger from "./logger"
Expand All @@ -11,9 +11,12 @@ dismiss_alert = function (e) {

components()
timezoneDetect()
htmxLoader()
window.addEventListener("DOMContentLoaded", () => {
emailSpellChecker()
})

window.htmx = htmx
console.log(
"Hey! Curious about how Totem works? Check out our open source code at https://github.com/totem-technologies/totem-server. Want to work with us? We'd love to talk to you, send me a message at [email protected]."
)
logger(window.TOTEM_DATA.debug)
7 changes: 7 additions & 0 deletions assets/js/htmx-loader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import htmx from "htmx.org"

function init() {
window.htmx = htmx
}

export default init
Loading

0 comments on commit 22527fb

Please sign in to comment.