Merge pull request #4551 from deepak1556/protocol_session_patch
protocol: respect requests from partition
This commit is contained in:
commit
a63193c826
8 changed files with 125 additions and 49 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue