]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-11283: iOS doesn't support beforeunload, use recommended pagehide for that platform
authorChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 19:19:28 +0000 (14:19 -0500)
committerChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 19:19:28 +0000 (14:19 -0500)
commit954b2564b2e4582949825988f30dde3fb16d1347
tree01ba6494ed70e01a38f4797e79e7041776c6dddd
parentd5af929660de70c64abcb61b540ffd4689a7b365
FS-11283: iOS doesn't support beforeunload, use recommended pagehide for that platform

$.verto.unloadJobs queue leverages the 'beforeunload' event to perform work
prior to browser page unload.

However, iOS does not support that event. Its equivalent event is 'pagehide'.

This patch uses the pagehide event on iOS, and beforeunload for all others.
html5/verto/js/src/jquery.verto.js