about summary refs log tree commit diff
path: root/app/views/home
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-16 19:15:05 +0200
committerGitHub <noreply@github.com>2019-08-16 19:15:05 +0200
commite5cee8062f15191d9dd388a65f6caa104abfd559 (patch)
tree0a55913ac7e3f6535bbf43bac7b3342910e3784b /app/views/home
parent70da6d663078fb7d04aed387ac085afb2e9e2cd2 (diff)
Fix blurhash and autoplay not working on public pages (#11585)
Diffstat (limited to 'app/views/home')
-rw-r--r--app/views/home/index.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml
index 4c7fac0b6..30c7aab19 100644
--- a/app/views/home/index.html.haml
+++ b/app/views/home/index.html.haml
@@ -5,8 +5,7 @@
   = preload_link_tag asset_pack_path('features/notifications.js'), crossorigin: 'anonymous'
 
   %meta{name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key}
-  %script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
-
+  = render_initial_state
   = javascript_pack_tag 'application', integrity: true, crossorigin: 'anonymous'
 
 .app-holder#mastodon{ data: { props: Oj.dump(default_props) } }