DownloadsExtension
DownloadsExtension copied to clipboard
All past completed downloads are animated when the popup opens
I guess it can be fixed by using window.addEventListener('load', enableAnimations)
event listener that adds the animation
rule or sets some property in the store.
This issue is on the roadmap but I'm currently working on porting the extension to manifest v3 which involves rewriting a significant amount of the backend logic. I'll definitely be looking at sorting this either in v3 or a subsequent release.
This is caused by download.state
(where download is a DownloadItem), with a dynamic class of state. This means that all items gain the class on load.
I tried to implement a timeSinceLoad store in svelte and then test the time since the extension was loaded for the state but then I realized that it would just push the animation back 200ms. It'll probably need something a bit more complex, e.g listeners with .classList.add/remove