Skip to content

Commit feebd90

Browse files
committed
fix: set boot properties in prod
1 parent 61a454e commit feebd90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@
182182
<div id="modals"></div>
183183
<div id="popovers"></div>
184184

185-
<script>
185+
<script type="text/javascript">
186186
window.csrf_token = "{{ csrf_token }}"
187+
if (!window.frappe) window.frappe = {}
188+
frappe.boot = JSON.parse({{ boot }})
187189
</script>
188190

189191
<script type="module" src="/src/main.js"></script>

0 commit comments

Comments
 (0)