2013-12-16 11:22:23 +00:00
|
|
|
/* jshint -W117 */
|
|
|
|
/* application specific logic */
|
2014-05-12 09:56:33 +00:00
|
|
|
|
2013-12-16 11:22:23 +00:00
|
|
|
function init() {
|
2014-11-06 13:54:47 +00:00
|
|
|
|
2014-12-19 13:59:08 +00:00
|
|
|
RTC.start();
|
2015-01-19 09:20:00 +00:00
|
|
|
xmpp.start(UI.getCreadentials);
|
2013-12-16 11:22:23 +00:00
|
|
|
}
|
|
|
|
|
2014-07-28 11:31:32 +00:00
|
|
|
|
2013-12-16 11:22:23 +00:00
|
|
|
$(document).ready(function () {
|
2015-01-07 14:54:03 +00:00
|
|
|
|
2015-01-09 13:39:32 +00:00
|
|
|
if(API.isEnabled())
|
|
|
|
API.init();
|
2014-08-21 16:42:54 +00:00
|
|
|
|
2015-01-07 14:54:03 +00:00
|
|
|
UI.start();
|
|
|
|
statistics.start();
|
2015-01-24 14:28:02 +00:00
|
|
|
connectionquality.init();
|
2014-12-17 16:21:25 +00:00
|
|
|
|
2014-03-26 11:32:42 +00:00
|
|
|
// Set default desktop sharing method
|
2015-01-13 13:11:05 +00:00
|
|
|
desktopsharing.init();
|
2015-01-22 16:26:05 +00:00
|
|
|
|
|
|
|
keyboardshortcut.init();
|
2013-12-16 11:22:23 +00:00
|
|
|
});
|
|
|
|
|
2013-12-30 08:31:08 +00:00
|
|
|
$(window).bind('beforeunload', function () {
|
2015-01-09 13:39:32 +00:00
|
|
|
if(API.isEnabled())
|
|
|
|
API.dispose();
|
2013-12-16 11:22:23 +00:00
|
|
|
});
|
|
|
|
|