Skip to content

Commit

Permalink
apply labels earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Feb 9, 2025
1 parent 11953f0 commit 8591284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/accesskit/disable_gifs.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ const processBackgroundGifs = function (gifBackgroundElements) {

if (sourceUrl) {
Date.now() - enabledTimestamp >= 100 && gifBackgroundElement.setAttribute(loadingBackgroundImageAttribute, '');
addLabel(gifBackgroundElement, true);
gifBackgroundElement.style.setProperty(
pausedBackgroundImageVar,
sourceValue.replaceAll(sourceUrlRegex, await createPausedUrl(sourceUrl))
);
addLabel(gifBackgroundElement, true);
gifBackgroundElement.removeAttribute(loadingBackgroundImageAttribute);
}
});
Expand Down

0 comments on commit 8591284

Please sign in to comment.