diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index 88fa3e0..d2bb440 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -15,7 +15,6 @@ html[lang="en"] = favicon_link_tag 'favicon.png' = render 'layouts/ga' script - | window.mainWorkerPath = '#{javascript_path "main_worker"}'; | window.browserIdUser = #{browser_id_user}; body = render 'layouts/header' diff --git a/app/views/layouts/bare.html.slim b/app/views/layouts/bare.html.slim index 91395d8..433b18e 100644 --- a/app/views/layouts/bare.html.slim +++ b/app/views/layouts/bare.html.slim @@ -5,7 +5,5 @@ html[lang="en"] title = page_title = stylesheet_link_tag 'embed', :media => 'all' = javascript_include_tag 'embed' - script - | window.mainWorkerPath = '#{javascript_path "main_worker"}'; body.iframe = yield diff --git a/config/environments/production.rb b/config/environments/production.rb index 117eb1e..9b1841a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -59,7 +59,7 @@ Asciinema::Application.configure do # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. - config.assets.precompile += %w( player.css player.js main_worker.js embed.css embed.js ) + config.assets.precompile += %w( player.css player.js embed.css embed.js ) # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.