diff options
Diffstat (limited to 'src/content/PlaceHolder.js')
-rw-r--r-- | src/content/PlaceHolder.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/content/PlaceHolder.js b/src/content/PlaceHolder.js index 8f31951..8f57b4f 100644 --- a/src/content/PlaceHolder.js +++ b/src/content/PlaceHolder.js @@ -119,10 +119,14 @@ var PlaceHolder = (() => { let replacement = createHTMLElement("a"); replacement.className = "__NoScript_PlaceHolder__"; cloneStyle(element, replacement); - replacement.style.backgroundImage = `url(${ICON_URL})`; + let setImage = () => replacement.style.backgroundImage = `url(${ICON_URL})`; if (ns.embeddingDocument) { replacement.classList.add("document"); + window.stop(); + setTimeout(setImage, 0); // defer to bypass window.stop(); + } else { + setImage(); } replacement.href = url; |