Enable customing mime type and charset when returning reqeust string job.

This commit is contained in:
Cheng Zhao 2013-08-25 15:07:07 +08:00
parent 912bac698c
commit 1ed77371c0
3 changed files with 27 additions and 2 deletions

View file

@ -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() {