SafeEmbed: remove unnecessary conditional
This commit is contained in:
parent
c79506e1fd
commit
83103294d3
1 changed files with 1 additions and 3 deletions
|
@ -45,9 +45,7 @@ const SafeEmbed: React.FC<ISafeEmbed> = ({
|
|||
}
|
||||
|
||||
return () => {
|
||||
if (iframeDocument) {
|
||||
iframe.current?.contentWindow?.removeEventListener('message', handleMessage);
|
||||
}
|
||||
iframe.current?.contentWindow?.removeEventListener('message', handleMessage);
|
||||
};
|
||||
}, [iframe.current, html]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue