Skip to content

Commit

Permalink
🐛Fix missing iframe error in safeframe (#27233)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcordry committed Mar 16, 2020
1 parent 9dc6c03 commit 1517c05
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -464,7 +464,7 @@ export class SafeframeHostApi {
* @private
*/
sendMessage_(payload, serviceName) {
if (!this.iframe_.contentWindow) {
if (!this.iframe_ || !this.iframe_.contentWindow) {
dev().error(TAG, 'Frame contentWindow unavailable.');
return;
}
Expand Down

0 comments on commit 1517c05

Please sign in to comment.