This commit is contained in:
Michiel Borkent 2025-05-13 11:05:37 +02:00
parent 9c169b807a
commit eef3cdaf28

View file

@ -84,7 +84,7 @@
cp)))
(defn resource
(^URL [path] (resource @the-url-loader path))
(^URL [path] (resource path @the-url-loader))
(^URL [path loader]
(if (str/starts-with? path "/") nil ;; non-relative paths always return nil
(getResource loader [path] true))))