20 lines
379 B
JavaScript
20 lines
379 B
JavaScript
|
export default () => ({
|
||
|
|
||
|
show: false,
|
||
|
open() {
|
||
|
this.show = true;
|
||
|
},
|
||
|
close() {
|
||
|
this.show = false;
|
||
|
},
|
||
|
isOpen() {
|
||
|
return this.show === true;
|
||
|
},
|
||
|
init() {
|
||
|
window.addEventListener("show-player-modal", (event) => {
|
||
|
this.open();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
})
|