add App.isOnline method.
fix navigator.onLine return value in webview.