Enable customing mime type and charset when returning reqeust string job.
This commit is contained in:
parent
912bac698c
commit
1ed77371c0
3 changed files with 27 additions and 2 deletions
|
@ -41,6 +41,10 @@ app.on('will-finish-launching', function() {
|
|||
protocol.registerProtocol('atom-string', function(url) {
|
||||
return url;
|
||||
});
|
||||
|
||||
protocol.registerProtocol('atom-string-job', function(url) {
|
||||
return new protocol.RequestStringJob({mimeType: 'text/html', data: url});
|
||||
});
|
||||
});
|
||||
|
||||
app.on('finish-launching', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue