mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 01:05:34 +03:00
Fix wrong logic again
This commit is contained in:
parent
e2346bc32a
commit
fb6bca9016
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ export default ({
|
|||
};
|
||||
|
||||
const confirmClose = () => {
|
||||
if (canClose()) {
|
||||
if (!canClose()) {
|
||||
const yes = confirm(beforeUnloadCopy);
|
||||
return yes;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue