Skip to content

Commit

Permalink
небольшие правки
Browse files Browse the repository at this point in the history
  • Loading branch information
ritds committed Mar 31, 2022
1 parent 99e3e2c commit 0fd5fce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions figma_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function readSettings() {
pageOpenTimeout: 10000,
pageLoadTimeout: 60000,
downloadsBaseDir: './process/_downloads',
debugDir: './process/debug',
debugDir: './process/debug/',
doDebug: false,
saveScreenOnError: true
}
Expand Down Expand Up @@ -291,7 +291,7 @@ async function downloadFile(session, file, settings) {

if (downloaded) {
logger.info('Download complete');
return 0;
break;
}

if (j % 30 == 0) {
Expand All @@ -302,7 +302,7 @@ async function downloadFile(session, file, settings) {
logger.info(`File ${title} is not downloaded during timeout`)
}
}

if (fs.existsSync(tmpDownloadDir)) {
fs.rmdirSync(tmpDownloadDir);
}
Expand Down

0 comments on commit 0fd5fce

Please sign in to comment.