Skip to content

Commit

Permalink
[feat#7] web worker import문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhoony committed Jul 16, 2024
1 parent 10c9605 commit 2dd42fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/utils/worker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
// eslint-disable-next-line import/extensions
import Worker from "../workers/worker.ts?worker"
export const worker = new Worker(new URL("../workers/worker.ts?worker", import.meta.url))

export const worker = new Worker()
2 changes: 1 addition & 1 deletion src/workers/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface e {
}

self.onmessage = (e) => {
const { type, data } = e.data
const { type } = e.data
switch (type) {
case "init":
setInterval(() => {
Expand Down

0 comments on commit 2dd42fe

Please sign in to comment.