mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
$.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.
This needs to be fleshed out more. It would be nice to develop a web app here that implements a web phone. Do not base it on the demo because it was just tossed together. To run jshint: cd js npm install grunt