Merge pull request #9724 from electron/bump-standard-markdown
Bump standard-markdown
This commit is contained in:
commit
7587fc22f1
9 changed files with 6 additions and 9 deletions
|
@ -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')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue