Persist ads (#411)

* persist homepage ads

* persist all ads
This commit is contained in:
mayeaux 2021-12-02 18:04:40 +01:00 committed by GitHub
parent afefd5f4f5
commit a842a58608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -228,7 +228,7 @@ function HomePage(props: Props) {
// $FlowFixMe // $FlowFixMe
document.head.appendChild(styleSheet); document.head.appendChild(styleSheet);
clonedCard.style.display = 'none'; // clonedCard.style.display = 'none';
let timeoutCount = 0; let timeoutCount = 0;
// eslint-disable-next-line no-inner-declarations // eslint-disable-next-line no-inner-declarations

View file

@ -69,6 +69,10 @@ function Ads(props: Props) {
return () => { return () => {
// $FlowFixMe // $FlowFixMe
document.head.removeChild(script); document.head.removeChild(script);
delete window.aniplayerPos;
delete window.storageAni;
delete window.__VIDCRUNCH_CONFIG_618bb4d28aac298191eec411__;
delete window.__player_618bb4d28aac298191eec411__;
}; };
} catch (e) {} } catch (e) {}
} }