Skip to content

Commit 03276b0

Browse files
authored
docs: Don't imply this return value for addModule method (#73)
1 parent ecfe808 commit 03276b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ let workerBlock = module {
143143
}
144144
};
145145

146-
let worker = new Worker({type: "module"}).addModule(workerBlock);
146+
let worker = new Worker({type: "module"});
147+
worker.addModule(workerBlock);
147148
worker.onmessage = ({data}) => alert(data);
148149
worker.postMessage(module { export default function() { return "hello!" } });
149150
```

0 commit comments

Comments
 (0)