From a02414410f7f756fe2ccc54ee8b3f3e7da3c87fc Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 20 Feb 2013 17:17:05 +1100 Subject: [PATCH] amazing the amount of damage a missing .js extension can cause --- app/views/common/_discourse_javascript.html.erb | 1 + config/application.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index 8d09b2a0159..9d94476afa2 100644 --- a/app/views/common/_discourse_javascript.html.erb +++ b/app/views/common/_discourse_javascript.html.erb @@ -3,6 +3,7 @@ // TODO: automate this to grab from the manifest, Rails voodoo should be able to get it var map = { + 'defer/html-sanitizer-bundle': <%= asset_path('defer/html-sanitizer-bundle.js').inspect.html_safe %> }; var assetPath = function(asset){ diff --git a/config/application.rb b/config/application.rb index 30076578ec1..36b538dcfa3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -30,7 +30,7 @@ module Discourse config.assets.paths += %W(#{config.root}/config/locales) config.assets.precompile += [ - 'admin.js', 'admin.css', 'shiny/shiny.css', 'preload_store.js', 'jquery.js' #, 'defer/html-sanitizer-bundle.js' + 'admin.js', 'admin.css', 'shiny/shiny.css', 'preload_store.js', 'jquery.js', 'defer/html-sanitizer-bundle.js' ] # Activate observers that should always be running.