diff --git a/lib/browser/chrome-extension.js b/lib/browser/chrome-extension.js index a49b8f2651aa..c0c842caf627 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -83,7 +83,7 @@ const startBackgroundPages = function (manifest) { const scripts = manifest.background.scripts.map((name) => { return `` }).join('') - html = new Buffer(`${scripts}`) + html = Buffer.from(`${scripts}`) } const contents = webContents.create({