app/views/lookbook/layouts/app.html.erb in lookbook-0.3.2 vs app/views/lookbook/layouts/app.html.erb in lookbook-0.3.3
- old
+ new
@@ -8,10 +8,10 @@
<link href="/lookbook-assets/app.css" rel="stylesheet">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>👀</text></svg>">
<% if config.auto_refresh %>
<script>
- window.SOCKET_PATH = "/lookbook/cable";
+ window.SOCKET_PATH = "<%= Lookbook::Engine.websocket_mount_path %>";
</script>
<% end %>
<script src="/lookbook-assets/app.js" defer></script>
<title><%= [@example&.label, @preview&.label, "Lookbook"].compact.join(" :: ") %></title>