Merge pull request #9733 from qazbnm456/patch-1

Use Buffer.from instead of deprecated new Buffer
This commit is contained in:
Vanessa Yuen 2017-06-13 11:44:34 -07:00 committed by GitHub
commit de545aabce

View file

@ -83,7 +83,7 @@ const startBackgroundPages = function (manifest) {
const scripts = manifest.background.scripts.map((name) => {
return `<script src="${name}"></script>`
}).join('')
html = new Buffer(`<html><body>${scripts}</body></html>`)
html = Buffer.from(`<html><body>${scripts}</body></html>`)
}
const contents = webContents.create({