Skip to content

Commit

Permalink
Merge pull request #8 from DDD-Community/feat/#7
Browse files Browse the repository at this point in the history
[feat#7] web worker import문 수정
  • Loading branch information
lkhoony committed Jul 16, 2024
2 parents 10c9605 + 2dd42fe commit cd25214
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 cd25214

Please sign in to comment.