Browse code

Initial htmx npm packages installation

Benjamin Roth authored on25/05/2023 09:52:13
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+htmx.defineExtension('debug', {
2
+    onEvent: function (name, evt) {
3
+        if (console.debug) {
4
+            console.debug(name, evt);
5
+        } else if (console) {
6
+            console.log("DEBUG:", name, evt);
7
+        } else {
8
+            throw "NO CONSOLE SUPPORTED"
9
+        }
10
+    }
11
+});