Ver Fonte

fix: 修复工作台下获取window.top问题

cuiyalong há 1 ano atrás
pai
commit
35b26d8e32
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      apps/mobile/public/decrypt-js.html

+ 1 - 1
apps/mobile/public/decrypt-js.html

@@ -93,7 +93,7 @@
                 ...result,
                 type: 'after-decrypt'
             }
-            window.top.postMessage(payload, payload.fromOrigin)
+            window.parent.postMessage(payload, payload.fromOrigin)
         }
     </script>
 </body>