make sure rack livereload port gets set when swf is disabled

This commit is contained in:
John Bintz 2013-03-27 17:50:06 -04:00
parent 7c432f4438
commit 2327695365

View File

@ -4,10 +4,12 @@
<% if force_swf? %>
WEB_SOCKET_FORCE_FLASH = true;
<% end %>
RACK_LIVERELOAD_PORT = <%= @port %>;
</script>
<script type="text/javascript" src="/__rack/swfobject.js"></script>
<script type="text/javascript" src="/__rack/web_socket.js"></script>
<% end %>
<script type="text/javascript">
RACK_LIVERELOAD_PORT = <%= @port %>;
</script>
<script type="text/javascript" src="<%= src %>"></script>