We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6ff5ac commit aeb8782Copy full SHA for aeb8782
client/modules/IDE/hooks/useP5Version.jsx
@@ -204,8 +204,8 @@ export function P5VersionProvider(props) {
204
...dom.documentElement.querySelectorAll('script')
205
].find((s) =>
206
[
207
- /^https?:\/\/cdnjs.cloudflare.com\/ajax\/libs\/p5.js\/(.+)\/addons\/p5\.sound\.min\.js$/,
208
- /^https?:\/\/cdn.jsdelivr.net\/npm\/p5@(.+)\/lib\/addons\/p5\.sound\.min\.js$/
+ /^https?:\/\/cdnjs.cloudflare.com\/ajax\/libs\/p5.js\/(.+)\/addons\/p5\.sound(?:\.min)?\.js$/,
+ /^https?:\/\/cdn.jsdelivr.net\/npm\/p5@(.+)\/lib\/addons\/p5\.sound(?:\.min)?\.js$/
209
].some((regex) => regex.exec(s.getAttribute('src') || ''))
210
);
211
const setP5Sound = function (enabled) {
0 commit comments