Skip to content

Commit 3d47d5c

Browse files
author
Zakaria RACHEDI
committed
Http change to https for dofus-touch
After dofus-touch migration to https
1 parent 320ead9 commit 3d47d5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function crawlerInit (cmdResponse) {
4444
currentPage = cmdResponse.fromPage;
4545
itemCategory = cmdResponse.category;
4646
cmdResponse.language == 'french' ? url = sw.cmdSwitch(itemCategory) : url = sw.cmdSwitchEn(itemCategory);
47-
cmdResponse.game == 'dofus' ? url = url : url = url.replace('https://www.dofus.com', 'http://www.dofus-touch.com');
47+
cmdResponse.game == 'dofus' ? url = url : url = url.replace('https://www.dofus.com', 'https://www.dofus-touch.com');
4848
globalUrl = url.substring(0, url.indexOf(".com/") + 4);
4949
requestOpts.url = url;
5050
var realMaxPagePromise = request(requestOpts).then(function ($) {

lib/getItems.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function getData(url, back, callback) {
8888
}else {
8989
console.log(err);
9090
console.log('\x1b[31m%s\x1b[0m' ,'/!\\Broken promise all');
91-
92-
}process.exit();
91+
process.exit();
92+
}
9393
});
9494
}

0 commit comments

Comments
 (0)