Ademking / BetterViewer

a replacement for the image viewing mode built into Firefox and Chrome-based web browsers.
MIT License
247 stars 19 forks source link

Fixed a bug where Chrome forcefully adds a duplicate image, which wou… #22

Closed patrykdziurkowski closed 2 years ago

patrykdziurkowski commented 2 years ago

…ld ruin the background. The image is now being deleted if the user is on Chrome on every initList. This bug wouldn't occur on Opera. The browser check can be easily spoofed, though: https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser

Please note that you may find a different place suitable for this kind of a check.

Ademking commented 2 years ago

@patrykdziurkowski Thank you so much for your contribution ❤️ Sorry for the late reply.