Merge pull request #4551 from deepak1556/protocol_session_patch

protocol: respect requests from partition
This commit is contained in:
Cheng Zhao 2016-02-24 12:03:37 +08:00
commit a63193c826
8 changed files with 125 additions and 49 deletions

View file

@ -4,7 +4,10 @@ if (!app.isReady()) {
throw new Error('Can not initialize protocol module before app is ready');
}
const protocol = process.atomBinding('protocol').protocol;
const session = require('electron').session;
// Returns the protocol property for default session.
const protocol = session.defaultSession.protocol;
// Warn about removed APIs.
var logAndThrow = function(callback, message) {