mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 10:15:31 +00:00
Add webamp.close() method
This commit is contained in:
parent
d963f987b1
commit
101fa863d9
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue