Removed flickering on iframes

This commit is contained in:
2017-10-16 11:53:47 +02:00
parent fb04540c29
commit 8fdeb97de9
8 changed files with 70 additions and 14 deletions

View File

@ -549,7 +549,7 @@ export class AnimeNotifier {
// Once the iframe becomes visible, load it
element["became visible"] = () => {
// If the source is already set correctly, don't set it again to avoid iframe flickering.
if(element.src !== element.dataset.src) {
if(element.src !== element.dataset.src && element.src !== (window.location.protocol + element.dataset.src)) {
element.src = element.dataset.src
}