Add a method to set the skin (#787)

Fixes #733
This commit is contained in:
Jordan Eldredge 2019-05-21 07:58:18 -07:00 committed by GitHub
parent b4a88d2cc4
commit 29b4e0db71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -387,6 +387,10 @@ class Winamp {
return this._actionEmitter.on(MINIMIZE_WINAMP, cb);
}
setSkinFromUrl(url: string): void {
this.store.dispatch(Actions.setSkinFromUrl(url));
}
async skinIsLoaded(): Promise<void> {
// Wait for the skin to load.
// TODO #leak