Upgrade Webamp to support disposal

This commit is contained in:
Jordan Eldredge 2018-12-03 17:37:40 -08:00
parent eb19bcdaf7
commit 4f66c4e60f
2 changed files with 2 additions and 10 deletions

View file

@ -20,7 +20,7 @@
"redux-observable": "^1.0.0",
"rxjs": "^6.3.3",
"shell-escape": "^0.2.0",
"webamp": "^1.3.0-beta.0"
"webamp": "^1.3.0-beta.1"
},
"scripts": {
"start": "react-scripts start",

View file

@ -17,15 +17,7 @@ class WebampComponent extends React.Component {
this._disposable.dispose();
if (this._webamp) {
if (this._webamp.dispose) {
this._webamp.dispose();
} else {
// TODO: Remove this once we upgrade Webamp
const close = document.querySelector("#webamp #close");
if (close != null) {
close.click();
}
}
this._webamp.dispose();
}
}