Skip to content

Commit 3db63d6

Browse files
AjidoJustinBeckwith
authored andcommitted
fix(samples): fix readline args in youtube upload (#1676)
1 parent 44ec114 commit 3db63d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/youtube/upload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ async function runSample(fileName) {
5454
// number of bytes uploaded to this point.
5555
onUploadProgress: evt => {
5656
const progress = (evt.bytesRead / fileSize) * 100;
57-
readline.clearLine();
58-
readline.cursorTo(0);
57+
readline.clearLine(process.stdout, 0);
58+
readline.cursorTo(process.stdout, 0, null);
5959
process.stdout.write(`${Math.round(progress)}% complete`);
6060
},
6161
}

0 commit comments

Comments
 (0)