mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
modify: change the file where detect Internet disconnection
This commit is contained in:
@@ -20,9 +20,7 @@ class Main extends React.Component {
|
||||
constructor (props) {
|
||||
super(props)
|
||||
|
||||
const isOnline = window.navigator.onLine
|
||||
|
||||
if (process.env.NODE_ENV === 'production' && isOnline) {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
mobileAnalytics.initAwsMobileAnalytics()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user