about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/home/index.html.haml3
-rw-r--r--app/views/layouts/application.html.haml1
2 files changed, 3 insertions, 1 deletions
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml
index f06c26e9d..498fae105 100644
--- a/app/views/home/index.html.haml
+++ b/app/views/home/index.html.haml
@@ -1 +1,4 @@
+- content_for :header_tags do
+  = javascript_include_tag 'application'
+
 = react_component 'Mastodon', default_props, class: 'app-holder', prerender: false
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 1746d9964..8cb062cfb 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -6,7 +6,6 @@
       = "#{yield(:page_title)} - " if content_for?(:page_title)
       Mastodon
     = stylesheet_link_tag    'application', media: 'all'
-    = javascript_include_tag 'application'
     = csrf_meta_tags
     = yield :header_tags
   %body{ class: @body_classes }