From 956e436576dc368a28b00357e90797e683fcbd7a Mon Sep 17 00:00:00 2001 From: Henry Heino Date: Fri, 28 Jun 2024 08:06:50 -0700 Subject: [PATCH] Fix downloading plugins on web --- packages/lib/services/plugins/RepositoryApi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/lib/services/plugins/RepositoryApi.ts b/packages/lib/services/plugins/RepositoryApi.ts index cb0c5c50d00..2fd45de0e6c 100644 --- a/packages/lib/services/plugins/RepositoryApi.ts +++ b/packages/lib/services/plugins/RepositoryApi.ts @@ -168,7 +168,8 @@ export default class RepositoryApi { } private assetFileUrl(pluginId: string): string { - if (this.release_) { + // On web, downloading from a release is blocked by CORS. + if (this.release_ && shim.mobilePlatform() !== 'web') { const asset = this.release_.assets.find(asset => { const s = asset.name.split('@'); s.pop();