diff --git a/web/index.html b/web/index.html
index 2c730a7dacc45..41c85ec188da1 100644
--- a/web/index.html
+++ b/web/index.html
@@ -118,14 +118,10 @@
- <% if (htmlWebpackPlugin.options.isWeb) { %>
-
-
- <% if (htmlWebpackPlugin.options.isProduction || htmlWebpackPlugin.options.isStaging) { %>
-
-
-
- <% } %>
+ <% if (htmlWebpackPlugin.options.isWeb && (htmlWebpackPlugin.options.isProduction || htmlWebpackPlugin.options.isStaging)) { %>
+
+
+
<% } %>