Преглед на файлове

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

David Luzar преди 2 години
родител
ревизия
372743f59f
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      public/index.html

+ 2 - 0
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" />