Skip to content

Commit

Permalink
2.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed Jan 14, 2023
1 parent 67cedab commit 37aebdf
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
6 changes: 3 additions & 3 deletions dist/wfplayer.js

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions docs/uncompiled/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/uncompiled/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wfplayer",
"version": "2.2.5",
"version": "2.2.6",
"description": "WFPlayer.js is an audio waveform generator",
"main": "dist/wfplayer.js",
"types": "types/wfplayer.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions src/drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export default class Drawer {
});
} else {
this.worker = { postMessage };

this.wf.on('update', (config) => {
this.config = config;
});

this.worker.postMessage({
type: 'INIT',
data: {
Expand Down

0 comments on commit 37aebdf

Please sign in to comment.