Skip to content

Commit

Permalink
I think specifying .ts works.
Browse files Browse the repository at this point in the history
  • Loading branch information
kixelated committed Oct 3, 2023
1 parent f58162c commit aad44f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/playback/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Context {

private async load(config: Message.ConfigAudio): Promise<AudioWorkletNode> {
// Load the worklet source code.
const url = new URL("./worklet/index", import.meta.url)
const url = new URL("./worklet/index.ts", import.meta.url)
await this.context.audioWorklet.addModule(url)

const volume = this.context.createGain()
Expand Down
2 changes: 1 addition & 1 deletion lib/playback/port.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class Port {
#callback: Callback

constructor(callback: Callback) {
const url = new URL("worker/index", import.meta.url)
const url = new URL("worker/index.ts", import.meta.url)

this.#callback = callback

Expand Down

0 comments on commit aad44f2

Please sign in to comment.