Skip to content

Commit 8b2af4d

Browse files
Fixed a few bugs
1 parent 8eae855 commit 8b2af4d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/assets/automations.png

354 KB
Loading

docs/assets/notriggers.png

263 KB
Loading

src/components/scratch/ScratchPanel.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,12 @@ export const ScratchPanel = ({ archive, onArchiveChange, onProjectJsonUpdate, is
14951495
const audioMod = await import('scratch-audio');
14961496
const AudioCtor = audioMod.default || audioMod;
14971497
if (typeof AudioCtor === 'function') {
1498-
const audioEngine = new AudioCtor();
1499-
vm.attachAudioEngine(audioEngine);
1498+
try {
1499+
const audioEngine = new AudioCtor();
1500+
vm.attachAudioEngine(audioEngine);
1501+
} catch (audioError) {
1502+
console.warn('scratch-audio initialization failed:', audioError);
1503+
}
15001504
}
15011505
} catch (e) {
15021506
console.warn('scratch-audio not available:', e);

0 commit comments

Comments
 (0)