mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix: fetch for snap registry (#19866)
This commit is contained in:
parent
ec7c64d4fc
commit
f4305adb9e
@ -526,7 +526,8 @@ export default class PreferencesController {
|
|||||||
async updateSnapRegistry() {
|
async updateSnapRegistry() {
|
||||||
let snapRegistry;
|
let snapRegistry;
|
||||||
try {
|
try {
|
||||||
snapRegistry = await fetch(KEYRING_SNAPS_REGISTRY_URL);
|
const response = await fetch(KEYRING_SNAPS_REGISTRY_URL);
|
||||||
|
snapRegistry = await response.json();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Failed to fetch registry: `, error);
|
console.error(`Failed to fetch registry: `, error);
|
||||||
snapRegistry = {};
|
snapRegistry = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user