Set default offline status correctly

This commit is contained in:
Jori Lallo
2016-09-02 15:32:10 -07:00
parent 0425b7866f
commit 581ba9af7a

View File

@@ -10,7 +10,7 @@ class Offline extends React.Component {
};
state = {
offline: false,
offline: !navigator.onLine,
}
getChildContext() {