fix: default beforeUnload
behavior is accept
#2397
Merged
beforeUnload
behavior is accept
#2397