Skip to content

Commit

Permalink
Ensure hidden iframe is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonnutter committed Mar 24, 2020
1 parent 20a24fd commit 79f2f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msal-core/src/utils/WindowUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class WindowUtils {
* @ignore
*/
static removeHiddenIframe(iframe: HTMLIFrameElement) {
if (document.body !== iframe.parentNode) {
if (document.body === iframe.parentNode) {
document.body.removeChild(iframe);
}
}
Expand Down

0 comments on commit 79f2f94

Please sign in to comment.