Browse Source

https --> http

洪海涛 4 năm trước cách đây
mục cha
commit
15a528c7bb
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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>