@HolgerJeromin commented on this pull request.
> @@ -0,0 +1,48 @@
+(function () {
+ function beforeUnloadListener(event) {
+ event.preventDefault();
+ // Legacy support for older browsers.
+ event.returnValue = true;
+ };
+
+ // A function that adds a `beforeunload` listener if there are unsaved
changes.
This comment type is not used in tooltips in most/all browsers.
Jsdoc would be better
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7076#pullrequestreview-4259043716
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/7076/review/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev