Michael Wang 6 éve
szülő
commit
afa4be5dec
1 módosított fájl, 7 hozzáadás és 6 törlés
  1. 7 6
      public/index.html

+ 7 - 6
public/index.html

@@ -7,7 +7,6 @@
   <meta name="viewport" content="width=device-width,initial-scale=1.0">
   <link rel="icon" href="<%= BASE_URL %>favicon.ico">
   <title>网考学生端</title>
-  <script src="https://retcode.alicdn.com/retcode/bl.js" crossorigin=""></script>
   <script>
     // 重命名 Electron 提供的 require 详细请参考:https://www.w3cschool.cn/electronmanual/electronmanual-electron-faq.html
     if (typeof (require) != "undefined") {
@@ -18,18 +17,20 @@
     }
   </script>
   <script src="https://ecs.qmth.com.cn:8878/electron-config/ali-arms.js"></script>
+
+</head>
+
+<body>
   <script>
     window.__sampleRateInt = parseInt(window.__sampleRateInt) || 100
     console.log('ARMS sample: ' + window.__sampleRateInt);
     !(function (c, b, d, a) {
       c[a] || (c[a] = {}); c[a].config = { pid: "hworw@48e147d26fd751a", enableSPA: true, sample: window.__sampleRateInt, sendResource: true, imgUrl: "https://arms-retcode.aliyuncs.com/r.png?" };
-      // with (b) with (body) with (insertBefore(createElement("script"), firstChild))
-      // setAttribute("crossorigin", "", src = d)
-    })(window, document, "", "__bl");
+      with (b) with (body) with (insertBefore(createElement("script"), firstChild))
+      setAttribute("crossorigin", "", src = d)
+    })(window, document, "https://retcode.alicdn.com/retcode/bl.js", "__bl");
   </script>
-</head>
 
-<body>
   <div id="app"></div>
   <!-- built files will be auto injected -->
 </body>