Merge pull request #3080 from Raven24/js-fix
fix js error when not logged in and on root/landing page, app is undefined
This commit is contained in:
commit
7cc63348ce
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ module LayoutHelper
|
||||||
path = ENV['ASSET_HOST'].to_s + '/assets/'
|
path = ENV['ASSET_HOST'].to_s + '/assets/'
|
||||||
content_tag(:script) do
|
content_tag(:script) do
|
||||||
<<-JS.html_safe
|
<<-JS.html_safe
|
||||||
app.baseImageUrl("#{path}")
|
if(window.app) app.baseImageUrl("#{path}")
|
||||||
JS
|
JS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue