From 2e9ace6f59db484362e3ff6864cbd43afbc62ab0 Mon Sep 17 00:00:00 2001 From: Boik Date: Mon, 12 Jun 2017 16:57:42 +0800 Subject: [PATCH] Use Buffer.from instead of deprecated new Buffer Use Buffer.from instead of deprecated new Buffer. --- lib/browser/chrome-extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({