Skip to content

Commit

Permalink
export ASSET_HOST to window.ENV so handlebars css loads
Browse files Browse the repository at this point in the history
in order to serve the css for handlebars files
from a CDN this needs to be set.

Test Plan:

load a page that has handlebars css on it
see that it works

Change-Id: Ie9fec018e2d9fc95e1bb5c1a61b504797fb535a0
Reviewed-on: https://gerrit.instructure.com/60344
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Ryan Shaw <ryan@instructure.com>
  • Loading branch information
Ryan Shaw authored and roor0 committed Aug 8, 2015
1 parent 5c3479f commit 4cfec0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def js_env(hash = {})
unless @js_env
editor_css = view_context.stylesheet_path(css_url_for('what_gets_loaded_inside_the_tinymce_editor'))
@js_env = {
ASSET_HOST: asset_host,
active_brand_config: active_brand_config.try(:md5),
url_to_what_gets_loaded_inside_the_tinymce_editor_css: editor_css,
current_user_id: @current_user.try(:id),
Expand Down

0 comments on commit 4cfec0f

Please sign in to comment.