mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Intro scripts removed on unmount
This commit is contained in:
parent
b7b9f2f059
commit
7729c3ae0f
1 changed files with 4 additions and 0 deletions
|
|
@ -288,6 +288,10 @@ const Intro = ({ queryParams }) => {
|
|||
sdkScriptElement.defer = true;
|
||||
document.body.appendChild(initScriptElement);
|
||||
document.body.appendChild(sdkScriptElement);
|
||||
return () => {
|
||||
document.body.removeChild(initScriptElement);
|
||||
document.body.removeChild(sdkScriptElement);
|
||||
};
|
||||
}, []);
|
||||
return (
|
||||
<div className={styles['intro-container']}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue