Skip to content

A full-featured download manager.

fix: html tpl

Dr_rOote880430e3acf
diff --git a/src/index.ejs b/src/index.ejs
index 26e94d84..add2f7ce 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -23,9 +23,11 @@
</section>
</div>
<!-- Set `__static` path to static files in production -->
- <script>
- if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
- </script>
+ <% if (!process.browser) { %>
+ <script>
+ if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
+ </script>
+ <% } %>
<!-- webpack builds are automatically injected -->
</body>