Skip to content

Commit

Permalink
Add missing file for network checks
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonpage committed Nov 16, 2016
1 parent 6ae2815 commit dcee9d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 101 deletions.
6 changes: 6 additions & 0 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

export function isNetworkError(err) {
return err.name === 'NetworkError'
|| err.message === 'Network request failed'
|| err.code.indexOf('NoConnectionError') > -1;
}
101 changes: 0 additions & 101 deletions lib/views/item/container.js

This file was deleted.

0 comments on commit dcee9d9

Please sign in to comment.