Add webamp.close() method

This commit is contained in:
Jordan Eldredge 2020-11-26 13:25:24 -08:00
parent d963f987b1
commit 101fa863d9
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@
### Features
- New Webamp instance method: `.setSkinFromUrl(url)`. See [usage.md](./docs/usage.md) for more details.
- New Webamp instance method: `.close()`. See [usage.md](./docs/usage.md) for more details.
### Bug Fixes

View file

@ -368,6 +368,10 @@ class Winamp {
return this._actionEmitter.on(CLOSE_WINAMP, cb);
}
close(): void {
this.store.dispatch(Actions.close());
}
reopen(): void {
this.store.dispatch(Actions.open());
}