Merge pull request #9724 from electron/bump-standard-markdown

Bump standard-markdown
This commit is contained in:
Zeke Sikelianos 2017-06-14 17:26:53 -07:00 committed by GitHub
commit 7587fc22f1
9 changed files with 6 additions and 9 deletions

View file

@ -137,7 +137,7 @@ Example:
const {protocol} = require('electron')
protocol.registerBufferProtocol('atom', (request, callback) => {
callback({mimeType: 'text/html', data: new Buffer('<h5>Response</h5>')})
callback({mimeType: 'text/html', data: Buffer.from('<h5>Response</h5>')})
}, (error) => {
if (error) console.error('Failed to register protocol')
})