mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 14:13:21 +01:00
Fix composer not overwritten by restored composer window
This commit is contained in:
parent
7053fcc96a
commit
96c44ed485
1 changed files with 8 additions and 1 deletions
|
@ -802,7 +802,14 @@ function Compose({
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
window.opener.__COMPOSE__ = passData; // Pass it here instead of `showCompose` due to some weird proxy issue again
|
window.opener.__COMPOSE__ = passData; // Pass it here instead of `showCompose` due to some weird proxy issue again
|
||||||
window.opener.__STATES__.showCompose = true;
|
if (window.opener.__STATES__.showCompose) {
|
||||||
|
window.opener.__STATES__.showCompose = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
window.opener.__STATES__.showCompose = true;
|
||||||
|
}, 10);
|
||||||
|
} else {
|
||||||
|
window.opener.__STATES__.showCompose = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue