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