mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-28 06:17:46 +01:00
Fixing fetch not working in dev
This commit is contained in:
parent
3bdc9e04ac
commit
d8798f3075
1 changed files with 2 additions and 6 deletions
|
@ -19,11 +19,7 @@ html lang="en"
|
|||
meta name="format-detection" content="telephone=no"
|
||||
= csrf_meta_tag()
|
||||
|
||||
= if vite_reload?() do
|
||||
script type="module" src="http://localhost:5173/@vite/client"
|
||||
script type="module" src="http://localhost:5173/js/app.js"
|
||||
- else
|
||||
script type="text/javascript" src=Routes.static_path(@conn, "/js/app.js") async="async"
|
||||
script type="text/javascript" src=Routes.static_path(@conn, "/js/app.js") async="async"
|
||||
= render PhilomenaWeb.LayoutView, "_opengraph.html", assigns
|
||||
body data-theme=theme_name(@current_user) data-vite-reload=to_string(vite_reload?())
|
||||
= render PhilomenaWeb.LayoutView, "_burger.html", assigns
|
||||
|
@ -34,4 +30,4 @@ html lang="en"
|
|||
= @inner_content
|
||||
= render PhilomenaWeb.LayoutView, "_footer.html", assigns
|
||||
form.hidden: input.js-interaction-cache type="hidden" value="{}"
|
||||
= clientside_data(@conn)
|
||||
= clientside_data(@conn)
|
Loading…
Add table
Reference in a new issue