Browse Source

禁止webdriver

y595705120 3 months ago
parent
commit
036c78cb94
1 changed files with 17 additions and 16 deletions
  1. 17 16
      src/containers/center/play/components/media.vue

+ 17 - 16
src/containers/center/play/components/media.vue

@@ -252,23 +252,23 @@
           }
         });
 
-        setInterval(function() { check() }, 1000);
+        // setInterval(function() { check() }, 1000);
 
-        var check = function() {
-          function doCheck(a) {
-            if (("" + a / a)["length"] !== 1 || a % 20 === 0) {
-              (function() {}
-                ["constructor"]("debugger")())
-            } else {
-              (function() {}
-                ["constructor"]("debugger")())
-            }
-            doCheck(++a)
-          }
-          try {
-            doCheck(0)
-          } catch (err) {}
-        };
+        // var check = function() {
+        //   function doCheck(a) {
+        //     if (("" + a / a)["length"] !== 1 || a % 20 === 0) {
+        //       (function() {}
+        //         ["constructor"]("debugger")())
+        //     } else {
+        //       (function() {}
+        //         ["constructor"]("debugger")())
+        //     }
+        //     doCheck(++a)
+        //   }
+        //   try {
+        //     doCheck(0)
+        //   } catch (err) {}
+        // };
 
 
       },
@@ -331,6 +331,7 @@
           if (!this.onPlay) return;
         }
         if(window.navigator.webdriver){
+          this.reportErr("play", 'webdriver');
           this.doPause()
           return
         }