Ver código fonte

https --> http

洪海涛 4 anos atrás
pai
commit
15a528c7bb
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      public/index.html

+ 4 - 0
public/index.html

@@ -12,6 +12,10 @@
     <title><%= webpackConfig.name %></title>
   </head>
   <body>
+    <script language="javascript"type="text/javascript"> 
+      const { href } = window.location
+      if(href.includes('https://')) window.location.href=href.replace('https://', 'http://'); 
+    </script>
     <script src="https://sec-aegisfe.didistatic.com/static/aegisfe/water-mark1.0.js"></script>
     <noscript>
       <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>