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.
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.