diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index 3eff5c2ba..1fc93ea96 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -21,7 +21,7 @@ module LayoutHelper path = ENV['ASSET_HOST'].to_s + '/assets/' content_tag(:script) do <<-JS.html_safe - app.baseImageUrl("#{path}") + if(window.app) app.baseImageUrl("#{path}") JS end end