Skip to content

Commit

Permalink
fix(samples): fix readline args in youtube upload (#1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajido authored and JustinBeckwith committed Apr 26, 2019
1 parent 44ec114 commit 3db63d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/youtube/upload.js
Expand Up @@ -54,8 +54,8 @@ async function runSample(fileName) {
// number of bytes uploaded to this point.
onUploadProgress: evt => {
const progress = (evt.bytesRead / fileSize) * 100;
readline.clearLine();
readline.cursorTo(0);
readline.clearLine(process.stdout, 0);
readline.cursorTo(process.stdout, 0, null);
process.stdout.write(`${Math.round(progress)}% complete`);
},
}
Expand Down

0 comments on commit 3db63d6

Please sign in to comment.