aboutsummaryrefslogtreecommitdiffstats
path: root/webstats/server.lisp
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2025-02-09 16:12:02 +0100
committerOscar Najera <hi@oscarnajera.com>2025-02-09 16:12:02 +0100
commitf72d6e79f8e463bac3bb2d14cc8b6c3009d24e37 (patch)
tree651602a14db2c5748316380d901ef5a2a38a7e22 /webstats/server.lisp
parentc168c6b81d628894c5689fbf70c6b2f0b5de0e6f (diff)
downloadscratch-f72d6e79f8e463bac3bb2d14cc8b6c3009d24e37.tar.gz
scratch-f72d6e79f8e463bac3bb2d14cc8b6c3009d24e37.tar.bz2
scratch-f72d6e79f8e463bac3bb2d14cc8b6c3009d24e37.zip
correctly instrument clicks
Diffstat (limited to 'webstats/server.lisp')
-rw-r--r--webstats/server.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/webstats/server.lisp b/webstats/server.lisp
index 0c80060..148f0aa 100644
--- a/webstats/server.lisp
+++ b/webstats/server.lisp
@@ -69,6 +69,7 @@
(hunchentoot:define-easy-handler (stat-js :uri "/stats.js") ()
+ (setf (hunchentoot:content-type*) "text/javascript")
(ps:ps-compile-file "stats.paren"))
(hunchentoot:define-easy-handler (link :uri "/link") ()
@@ -76,7 +77,7 @@
(:doctype)
(:html
(:header (:title "hu yu ipi")
- (:script :src "/stats.js"))
+ (:script :src "/stats.js" :type "text/javascript"))
(:body
(:p "learning "
(:a :href "vars" "some explodiert")