@@ -158,8 +158,8 @@ class DecryptIframe {
fromOrigin: location.origin,
type: 'decrypt'
}
- const targetOrigin = this.iframeOrigin
const win = window.frames[this.iframeName]
+ const targetOrigin = win.origin
win.postMessage(p, targetOrigin)