lex 1 rok pred
rodič
commit
56f4ae389a
4 zmenil súbory, kde vykonal 52 pridanie a 1 odobranie
  1. 16 0
      index.html
  2. 3 0
      src/tenant/music/music-detail/formatSvgToImg.ts
  3. 16 0
      teacher.html
  4. 17 1
      tenant.html

+ 16 - 0
index.html

@@ -36,6 +36,22 @@
   <meta name="msapplication-tap-highlight" content="no" />
   <title>酷乐秀</title>
   <script src="/flexible.js" charset="UTF-8"></script>
+  <script>
+    !(function (t) {
+      function e() {
+        var e = this || self;
+        (e.globalThis = e), delete t.prototype._T_;
+      }
+      "object" != typeof globalThis &&
+        (this
+          ? e()
+          : (t.defineProperty(t.prototype, "_T_", {
+            configurable: !0,
+            get: e,
+          }),
+            _T_));
+    })(Object);
+  </script>
 </head>
 
 <body>

+ 3 - 0
src/tenant/music/music-detail/formatSvgToImg.ts

@@ -2,6 +2,7 @@ import { Canvg, presets } from 'canvg'
 
 // https://gist.githubusercontent.com/n1ru4l/9c7eff52fe084d67ff15ae6b0af5f171/raw/da9fe36d72171d4e36b92aced587b48dc5182792/offscreen-canvas-polyfill.js
 if (!window.OffscreenCanvas) {
+  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
   // @ts-ignore
   window.OffscreenCanvas = class OffscreenCanvas {
     canvas: HTMLCanvasElement
@@ -10,6 +11,7 @@ if (!window.OffscreenCanvas) {
       this.canvas.width = width
       this.canvas.height = height
 
+      // eslint-disable-next-line @typescript-eslint/ban-ts-comment
       // @ts-ignore
       this.canvas.convertToBlob = () => {
         return new Promise(resolve => {
@@ -17,6 +19,7 @@ if (!window.OffscreenCanvas) {
         })
       }
 
+      // eslint-disable-next-line @typescript-eslint/ban-ts-comment
       // @ts-ignore
       return this.canvas
     }

+ 16 - 0
teacher.html

@@ -36,6 +36,22 @@
   <meta name="msapplication-tap-highlight" content="no" />
   <title>酷乐秀</title>
   <script src="/flexible.js" charset="UTF-8"></script>
+  <script>
+    !(function (t) {
+      function e() {
+        var e = this || self;
+        (e.globalThis = e), delete t.prototype._T_;
+      }
+      "object" != typeof globalThis &&
+        (this
+          ? e()
+          : (t.defineProperty(t.prototype, "_T_", {
+            configurable: !0,
+            get: e,
+          }),
+            _T_));
+    })(Object);
+  </script>
 </head>
 
 <body>

+ 17 - 1
tenant.html

@@ -36,6 +36,22 @@
   <meta name="msapplication-tap-highlight" content="no" />
   <title>酷乐秀</title>
   <script src="/flexible.js" charset="UTF-8"></script>
+  <script>
+    !(function (t) {
+      function e() {
+        var e = this || self;
+        (e.globalThis = e), delete t.prototype._T_;
+      }
+      "object" != typeof globalThis &&
+        (this
+          ? e()
+          : (t.defineProperty(t.prototype, "_T_", {
+            configurable: !0,
+            get: e,
+          }),
+            _T_));
+    })(Object);
+  </script>
 </head>
 
 <body>
@@ -44,4 +60,4 @@
   <!-- <script type="module" src="/src/teacher/main.ts"></script> -->
 </body>
 
-</html>
+</html>