Skip to content

Commit

Permalink
Fix downloading plugins on web
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Jun 28, 2024
1 parent 8d3de99 commit 956e436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/lib/services/plugins/RepositoryApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 956e436

Please sign in to comment.