Skip to content

Commit

Permalink
Fix worker-client serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Lcfvs committed Apr 28, 2021
1 parent eef61c0 commit b321a40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/worker-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ navigator.serviceWorker.addEventListener('message', ({ data, ports }) => {

if (port && template) {
port.postMessage({
[flag]: serialize(parse(template))
[flag]: `${serialize(parse(template))}`
})
}
}, { passive: true })
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lcf.vs/dom-engine",
"version": "2.3.2",
"version": "2.3.3",
"description": "A composable DOM based template engine",
"type": "module",
"main": "lib/engine.js",
Expand Down

0 comments on commit b321a40

Please sign in to comment.