sveltejs / svelte-devtools

A browser extension to inspect Svelte application by extending your browser devtools capabilities
https://chromewebstore.google.com/detail/svelte-devtools/kfidecgcdjjfpeckbblhmfkhmlgecoff
MIT License
1.42k stars 78 forks source link

fix: fallback to set icon as disabled #156

Closed ignatiusmb closed 9 months ago

ignatiusmb commented 9 months ago

Another follow-up to #154 and #155

The extension gallery is a hardcoded special case as a restricted URL in the chromium source code, we're catching errors instead of checking for the URL because the extension gallery is not just the Chrome Web Store, but also Microsoft Edge Add-ons, and possibly other galleries that will come up in the future. We're also chaining .catch because the try-catch block doesn't work here.