Set default offline status correctly
This commit is contained in:
@@ -10,7 +10,7 @@ class Offline extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
offline: false,
|
offline: !navigator.onLine,
|
||||||
}
|
}
|
||||||
|
|
||||||
getChildContext() {
|
getChildContext() {
|
||||||
|
|||||||
Reference in New Issue
Block a user