Skip to content

Commit

Permalink
Restored ability to run web extension in test mode if socket.io serve…
Browse files Browse the repository at this point in the history
…r is not available
  • Loading branch information
motin committed Oct 2, 2018
1 parent 08a0743 commit 3e79ad0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions automation/Extension/firefox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const start = function(config) {
};

configPromise
.catch(function(err) {
.then(start, function(err) {
console.log("Error encountered when listening for OpenWPM configuration");
console.error(err);
// Assume test run if the socket server is not launched / available
Expand All @@ -97,5 +97,4 @@ configPromise
crawl_id: ''
};
start(config);
})
.then(start)
});

0 comments on commit 3e79ad0

Please sign in to comment.