docs(docs-infra): remove deprecated `Buffer` usage from stackblitz builder (#30369)
Fixes #30364 PR Close #30369
This commit is contained in:
parent
aca339e864
commit
876cd603f1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue