mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
Handle case where Webamp has already closed when the modal is closed
This commit is contained in:
parent
7fd0c28332
commit
ee895f7aa3
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,9 @@ export default class WebampComponent extends React.Component {
|
|||
if (this._webamp) {
|
||||
// TODO: Repace this with this._webamp.destroy() once we upgrade.
|
||||
const close = document.querySelector("#webamp #close");
|
||||
close.click();
|
||||
if (close != null) {
|
||||
close.click();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue