Browse Source

兼容课件播放

liushengqiang 1 year ago
parent
commit
798b4e05bb
1 changed files with 11 additions and 7 deletions
  1. 11 7
      instrument.html

+ 11 - 7
instrument.html

@@ -28,13 +28,17 @@
         instance.postMessage(JSON.stringify(data))
       }
     }
-    _postMessage({
-      api: 'cloudLoading',
-      content: {
-        show: true,
-        type: 'fullscreen',
-      },
-    })
+    console.error(location.href)
+    if (!location.href.includes('iscurseplay=play')) {
+      _postMessage({
+        api: 'cloudLoading',
+        content: {
+          show: true,
+          type: 'fullscreen',
+        },
+      })
+    }
+
   </script>
 </head>