Update
This commit is contained in:
parent
8db0efff29
commit
62910b0726
@ -27,6 +27,7 @@ export class GameFarm {
|
||||
async load() {
|
||||
try {
|
||||
const data = await Http.getJson(this.stateUrl);
|
||||
if (window.app && window.app.dialog && window.app.dialog.isOpen) return;
|
||||
this.render(data.farm);
|
||||
} catch (error) {
|
||||
return;
|
||||
|
||||
@ -119,6 +119,7 @@ export class ModalManager {
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
const proceed = () => {
|
||||
if (!el.isConnected) return;
|
||||
el.dataset.confirmed = "1";
|
||||
el.click();
|
||||
};
|
||||
|
||||
@ -86,6 +86,10 @@ export class AppDialog extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
get isOpen() {
|
||||
return this.overlay.classList.contains("visible");
|
||||
}
|
||||
|
||||
open(mode, options) {
|
||||
const opts = options || {};
|
||||
this.mode = mode;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user