mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Navigation Callbacks for WebKit
This commit is contained in:
@@ -15,7 +15,8 @@ angular.module("admin.utils")
|
||||
onBeforeUnloadHandler: ($event) =>
|
||||
message = @getMessage()
|
||||
if message
|
||||
($event or $window.event).preventDefault()
|
||||
# following: https://developer.mozilla.org/en-US/docs/Web/Events/beforeunload
|
||||
($event or $window.event).returnValue = message
|
||||
message
|
||||
|
||||
# Action for angular navigation.
|
||||
|
||||
Reference in New Issue
Block a user