Merge pull request 'Fix: wrong warning in build environments' (#1835) from jeromew/strudel:onenced-warning into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1835 Reviewed-by: Aria <glossing@noreply.codeberg.org>
This commit is contained in:
commit
2748189f18
1 changed files with 1 additions and 1 deletions
|
|
@ -593,7 +593,7 @@ export const releaseAudioNode = (node) => {
|
||||||
// make sure all AudioScheduledSourceNodes are in a stopped state
|
// make sure all AudioScheduledSourceNodes are in a stopped state
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode
|
// https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode
|
||||||
if (node instanceof AudioScheduledSourceNode) {
|
if (node instanceof AudioScheduledSourceNode) {
|
||||||
if (node.onended && node.onended.name !== 'cleanup') {
|
if (process.env.NODE_ENV === 'development' && node.onended && node.onended.name !== 'cleanup') {
|
||||||
logger(
|
logger(
|
||||||
`[superdough] Deprecation warning: it seems your code path is setting 'node.onended = callback' instead of using the onceEnded helper`,
|
`[superdough] Deprecation warning: it seems your code path is setting 'node.onended = callback' instead of using the onceEnded helper`,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue