homerchen19 / github-file-icons

🌈 🗂 A browser extension which gives different filetypes different icons to GitHub, GitLab, gitea and gogs.
https://chrome.google.com/webstore/detail/file-icon-for-github-and/ficfmibkjjnpogdcfhfokmihanoldbfe
MIT License
1.43k stars 69 forks source link

Fix icon display on tree no flickering #156

Closed XxOsirisxX77 closed 7 months ago

XxOsirisxX77 commented 7 months ago

Description

This pull request fixes the icon display after DOM is modified (Issue #149). Improves over previous PR as it causes no flickering when loading the icons, however, the solution is a little messy, as it creates a new element to force a trigger in the observable so the element is now updated with the DOM after the changes on the host.