mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Use Buffer.from instead of deprecated new Buffer
Use Buffer.from instead of deprecated new Buffer.
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user