Skip to content

Commit

Permalink
$mol_audio_context removed node version
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Dec 29, 2023
1 parent 6fa0b7e commit 27bf8ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
34 changes: 0 additions & 34 deletions audio/context/context.node.ts

This file was deleted.

6 changes: 1 addition & 5 deletions audio/context/context.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
namespace $ {
export class $mol_audio_context extends $mol_object2 {
static create_context() {
return new this.$.$mol_dom_context.AudioContext()
}

@ $mol_memo.method
static context() {
return this.create_context()
return new this.$.$mol_dom_context.AudioContext() || this.$.$node['web-audio-api'].AudioContext
}
}
}

0 comments on commit 27bf8ce

Please sign in to comment.