Prevent loading of things twice when in production
This commit is contained in:
parent
db11039603
commit
02ae3785b1
|
@ -24,5 +24,10 @@
|
|||
%br/
|
||||
%div.projects
|
||||
|
||||
= embed_amber(:on_ready => "smalltalk.DespairApp._current()._bootstrap_('#{user}');")
|
||||
- if Resin.development?
|
||||
= embed_amber(:on_ready => "smalltalk.DespairApp._current()._bootstrap_('#{user}');")
|
||||
- else
|
||||
%script{:type => 'text/javascript', :src => '/js/resin-app.deploy.js'}
|
||||
%script{:type => 'text/javascript'}
|
||||
smalltalk.DespairApp._current()._bootstrap_("#{user}");
|
||||
|
||||
|
|
Loading…
Reference in New Issue