Skip to content

Commit

Permalink
fix: stop patterns in kabelsalat on stop command
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Jan 17, 2025
1 parent df26711 commit af57f4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export class PastaMirror {
doc.evaluate('$: silence', { from: null, to: null });
} else if (doc.target === 'kabelsalat') {
doc.evaluate('n(0).out()', { from: null, to: null });
if (window.strudel) {
window.strudel.setDocPattern(doc.id, window.strudelWindow.silence);
}
} else if (doc.target === 'hydra') {
console.log('todo: implement hydra stop command');
}
Expand Down

0 comments on commit af57f4e

Please sign in to comment.