-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windowClose event not triggered #1246
Comments
Try replacing "windowClose" with "beforeClose" in your code and see if it works as expected. |
hi, not working, html code like this <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello Neutralinojs</title>
<style>
body {
background-color: white;
}
</style>
</head>
<body>
It works 🚀
<script src="neutralino.js"></script>
<script>
Neutralino.init();
Neutralino.events.on("ready", () => {
Neutralino.os.showMessageBox("ready", "on ready");
});
Neutralino.events.on("beforeClose", () => {
Neutralino.os.showMessageBox("close", "will close");
});
</script>
</body>
</html>
ready msgbox popuped, nothing happened when i click close button |
Hello, please use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
windowClose event not triggered
To Reproduce
Steps to reproduce the behavior:
index.html
neutralino.config.json
Expected behavior
both ready and windowClose event will be called
Screenshots/Screen recordings
https://github.com/neutralinojs/neutralinojs/assets/7458713/7deb2053-bd68-43c8-b343-8e61f1766330
Specifications
The text was updated successfully, but these errors were encountered: