docs(docs-infra): remove deprecated `Buffer` usage from stackblitz builder (#30369)

Fixes #30364

PR Close #30369
This commit is contained in:
Santosh Yadav 2019-05-11 20:21:48 +05:30 committed by Miško Hevery
parent aca339e864
commit 876cd603f1
1 changed files with 1 additions and 3 deletions

View File

@ -221,9 +221,7 @@ class StackblitzBuilder {
_encodeBase64(file) { _encodeBase64(file) {
// read binary data // read binary data
var bitmap = fs.readFileSync(file); return fs.readFileSync(file, { encoding: 'base64' });
// convert binary data to base64 encoded string
return Buffer(bitmap).toString('base64');
} }
_existsSync(filename) { _existsSync(filename) {