app/views/lookbook/layouts/app.html.erb in lookbook-0.2.1 vs app/views/lookbook/layouts/app.html.erb in lookbook-0.2.2

- old
+ new

@@ -6,12 +6,14 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <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>"> - <script> - window.SOCKET_PATH = "/lookbook/cable" - </script> + <% if config.auto_refresh %> + <script> + window.SOCKET_PATH = "/lookbook/cable"; + </script> + <% end %> <script src="/lookbook-assets/app.js" defer></script> <title><%= [@example&.label, @preview&.label, "Lookbook"].compact.join(" :: ") %></title> </head> <body class="text-gray-800 font-sans text-sm antialiased">