fix the js error when not logged in and on root/landing page, app is undefined
This commit is contained in:
parent
731446e078
commit
9d3f221f1a
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