From 28f38ba70fbd3e164e8f5b7b11b49ab042e8187a Mon Sep 17 00:00:00 2001 From: Casey Link Date: Wed, 15 May 2024 17:09:38 +0200 Subject: [PATCH] fix confetti js lib inclusion --- src/clj/app/insurance/routes.clj | 4 +--- src/clj/app/jobs/airtable.clj | 1 - src/clj/app/render.clj | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/clj/app/insurance/routes.clj b/src/clj/app/insurance/routes.clj index 4fe6a75..f88b5a4 100644 --- a/src/clj/app/insurance/routes.clj +++ b/src/clj/app/insurance/routes.clj @@ -54,9 +54,7 @@ (ctmx/make-routes "/insurance-survey/{policy-id}/" (fn [req] - (layout/app-shell req - (view/survey-start-page req) - {:extra-scripts [[nil "confetti.js" :type :module]]})))) + (layout/app-shell req (view/survey-start-page req))))) (defn insurance-coverage-create2 [] (ctmx/make-routes diff --git a/src/clj/app/jobs/airtable.clj b/src/clj/app/jobs/airtable.clj index b415443..dfbef4a 100644 --- a/src/clj/app/jobs/airtable.clj +++ b/src/clj/app/jobs/airtable.clj @@ -55,7 +55,6 @@ (defn make-airtable-job [{:keys [env gigo]}] (fn [{:job/keys [frequency initial-delay]}] - (tap> "register airtable job") (jobs/make-repeating-job (partial #'airtable-job gigo (:airtable env)) frequency initial-delay))) (comment diff --git a/src/clj/app/render.clj b/src/clj/app/render.clj index 5c1031f..f63747d 100644 --- a/src/clj/app/render.clj +++ b/src/clj/app/render.clj @@ -86,6 +86,7 @@ (script req relative-prefix "nprogress.js") (script req relative-prefix "popperjs@2-dev.js") (script req relative-prefix "tippy@6-dev.js") + (script req relative-prefix "confetti.js" :type :module) (script req relative-prefix "sweetalert2.all@11.7.5.js") (script req relative-prefix "dropzone@6.0.0-beta.2.min.js") (script req relative-prefix "easymde.min@2.18.0.js")