about summary refs log tree commit diff
path: root/app/views/home/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/home/index.html.haml')
-rw-r--r--app/views/home/index.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml
index 498fae105..730249129 100644
--- a/app/views/home/index.html.haml
+++ b/app/views/home/index.html.haml
@@ -1,4 +1,7 @@
 - content_for :header_tags do
+  :javascript
+    window.INITIAL_STATE = #{render(file: 'home/initial_state', formats: :json)}
+
   = javascript_include_tag 'application'
 
 = react_component 'Mastodon', default_props, class: 'app-holder', prerender: false