diff --git a/src/extension-provider/createExternalExtensionProvider.ts b/src/extension-provider/createExternalExtensionProvider.ts index d74912ff..4d2bf215 100644 --- a/src/extension-provider/createExternalExtensionProvider.ts +++ b/src/extension-provider/createExternalExtensionProvider.ts @@ -55,9 +55,10 @@ export function createExternalExtensionProvider( function getExtensionId(typeOrId: ExtensionType) { let ids: { stable: string; - beta: string; - flask: string; + beta?: string; + flask?: string; }; + switch (browser?.name) { case 'edge-chromium': ids = config.edgeChromiumIds; @@ -68,5 +69,6 @@ function getExtensionId(typeOrId: ExtensionType) { default: ids = config.chromeIds; } + return ids[typeOrId as keyof typeof ids] ?? typeOrId; } diff --git a/src/extension-provider/external-extension-config.json b/src/extension-provider/external-extension-config.json index 875c9b85..c8caf9dd 100644 --- a/src/extension-provider/external-extension-config.json +++ b/src/extension-provider/external-extension-config.json @@ -5,9 +5,7 @@ "flask": "ljfoeinjpaedjfecbmggjgodbgkmjkjk" }, "edgeChromiumIds": { - "stable": "ejbalbakoplchlghecdalmeeeajnimhm", - "beta": "pbbkamfgmaedccnfkmjcofcecjhfgldn", - "flask": "ljfoeinjpaedjfecbmggjgodbgkmjkjk" + "stable": "ejbalbakoplchlghecdalmeeeajnimhm" }, "firefoxIds": { "stable": "webextension@metamask.io",