We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b79a95f commit 92a8d43Copy full SHA for 92a8d43
1 file changed
lib/modal/src/component/modal-iframe-content.tsx
@@ -77,14 +77,18 @@ export class ModalIframeContent extends Component<ModalIframeContentProps> {
77
return;
78
}
79
80
- const {iframeBodyClass, watchHeight} = this.props;
+ try {
81
+ const {iframeBodyClass, watchHeight} = this.props;
82
- if (watchHeight) {
83
- this._watchIframeHeight();
84
- }
+ if (watchHeight) {
+ this._watchIframeHeight();
85
+ }
86
- if (iframeBodyClass) {
87
- iframeDoc.body.classList.add(iframeBodyClass);
+ if (iframeBodyClass) {
88
+ iframeDoc.body.classList.add(iframeBodyClass);
89
90
+ } catch {
91
+ // ignore error
92
93
94
$(this._ref.current).trigger('modal-iframe-loaded');
0 commit comments