Skip to content

Commit

Permalink
Add 5000 ms timeout for Internet detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed Nov 20, 2016
1 parent a9c7118 commit e5c20b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"fs-extra": "^1.0.0",
"glob": "^7.1.1",
"is-online": "^5.1.2",
"is-online": "[email protected]:sindresorhus/is-online.git#9463e3348f0ea8ecb59d9a1c62398d2092c31e3e",
"jquery": "^3.1.1",
"os": "^0.1.1",
"path": "^0.12.7",
Expand Down
4 changes: 3 additions & 1 deletion app/scripts/services/utils.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ angular.module('icestudio')
}

this.isOnline = function(callback, error) {
nodeOnline(function(err, online) {
nodeOnline({
timeout: 5000
}, function(err, online) {
if (online) {
callback();
}
Expand Down

0 comments on commit e5c20b5

Please sign in to comment.