Fix 'online' event handling on Cordova
Merge pull request #4 from jtomaszewski/fix

Fix 'online' event handling on Cordova