flutter_window_close
flutter_window_close copied to clipboard
Web: Call preventDefault only when the plugin was enabled explicitly by setWebReturnValue
It was not possible to disable the behavior at the moment. Browsers understanding preventDefault() would always show the dialog as long as the plugin is enabled.
Broken in commit 166df017c8d050e5dcb58a92e189ce177dde6477.
Summary by CodeRabbit
-
Bug Fixes
- Fixed web platform window close and reload behavior to more precisely handle when default browser unload prevention should be applied, improving reliability of these operations.
✏️ Tip: You can customize this high-level summary in your review settings.