Skip to content

Commit

Permalink
cancel fetch even earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Feb 8, 2025
1 parent 7cac38c commit 7ea018d
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 @@ -87,7 +87,7 @@ const isAnimated = memoize(async (sourceUrl) => {
preferAnimation: true
});
try {
await decoder.decode();
await decoder.tracks.ready;
return decoder.tracks.selectedTrack.animated;
} finally {
decoder.close();
Expand Down

0 comments on commit 7ea018d

Please sign in to comment.