'use strict';

$(document).on('online', function() {
	console.log('Application got online event, reloading');
	window.location.reload();
});

//$(document).ready(function() {
//	console.log('Application got ready event');
//	window.Nightscout.client.init();
//});
window.Nightscout.client.init();

'use strict';

$(document).on('online', function() {
	console.log('Application got online event, reloading');
	window.location.reload();
});

$(document).ready(function() {
	console.log('Application got ready event');
	window.Nightscout.client.init();
});
Revert "see if document ready is the problem when testing on travis"
Revert "see if document ready is the problem when testing on travis"

This reverts commit 7428040e0536b55dff48f9b72ea783c25e5afb3c.
