From d6bbed286e180941977c615e42e9acfaa0db6081 Mon Sep 17 00:00:00 2001 From: Inhji Date: Sun, 9 Apr 2023 13:52:15 +0200 Subject: [PATCH] fix logout button not working on public pages --- assets/js/public.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/public.js b/assets/js/public.js index 2e10d99..dd4cee0 100644 --- a/assets/js/public.js +++ b/assets/js/public.js @@ -1,3 +1,6 @@ +// Include phoenix_html to handle method=PUT/DELETE in forms and buttons. +import "phoenix_html" + import lolight from "../vendor/lolight" import GLightbox from 'glightbox' @@ -17,4 +20,4 @@ document } }) -const lightbox = GLightbox({ selector: ".lightbox" }) \ No newline at end of file +GLightbox({ selector: ".lightbox" }) \ No newline at end of file