Skip to content

Commit 756293a

Browse files
authored
fixing cdn-link for making the p5.Sound library working.
1 parent 41a82f6 commit 756293a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/globals/globals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export const libraryDownloadUrl =
2323
export const minifiedLibraryDownloadUrl =
2424
`https://github.com/processing/p5.js/releases/download/v${p5Version}/p5.min.js` as const;
2525
export const cdnSoundUrl =
26-
(!!import.meta.env?.PUBLIC_P5_LIBRARY_PATH || p5Version.startsWith('v2'))
27-
? `https://cdn.jsdelivr.net/npm/p5.sound@${p5SoundVersion}` as const
26+
(!!import.meta.env?.PUBLIC_P5_LIBRARY_PATH || p5Version.startsWith('2'))
27+
? `https://cdn.jsdelivr.net/npm/p5.sound@${p5SoundVersion}/dist/p5.sound.min.js` as const
2828
: `https://cdn.jsdelivr.net/npm/p5@${p5Version}/lib/addons/p5.sound.min.js` as const

0 commit comments

Comments
 (0)