Commit 64d13b02 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Dynamically resize Zuora IFrame to prevent zero size in some cases

parent b41057f7
......@@ -96,13 +96,13 @@ export default {
// no needs to reload the iframe and emit the failure event
this.error = event.data.msg;
this.isAlertDismissed = false;
this.nextTick(() => {
window.removeEventListener('message', this.handleFrameMessages, true);
this.$refs.zuora.src = this.iframeSrc;
});
this.$emit('failure', { msg: this.error });
}
this.isLoading = false;
this.$refs.zuora.contentWindow.postMessage('resize', this.allowedOrigin);
},
isEventAllowedForOrigin(event) {
try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment