mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
Upgrade Webamp to support disposal
This commit is contained in:
parent
eb19bcdaf7
commit
4f66c4e60f
2 changed files with 2 additions and 10 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue