Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: autoredirect to plus in prod only (#6446)

David Luzar372743f59f03
diff --git a/public/index.html b/public/index.html
index 47a59624b8..a8633fc4df 100644
--- a/public/index.html
+++ b/public/index.html
@@ -79,6 +79,7 @@
</style>
<!------------------------------------------------------------------------->
+ <% if (process.env.NODE_ENV === "production") { %>
<script>
// Redirect Excalidraw+ users which have auto-redirect enabled.
//
@@ -97,6 +98,7 @@
window.location.href = "https://app.excalidraw.com";
}
</script>
+ <% } %>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />