Add webContents.fromId
This commit is contained in:
parent
9ab76fb884
commit
dfe7ae2124
2 changed files with 9 additions and 4 deletions
|
@ -226,9 +226,12 @@ binding._setWrapWebContents(wrapWebContents)
|
|||
debuggerBinding._setWrapDebugger(wrapDebugger)
|
||||
sessionBinding._setWrapSession(wrapSession)
|
||||
|
||||
module.exports.create = function (options) {
|
||||
if (options == null) {
|
||||
options = {}
|
||||
module.exports = {
|
||||
create (options = {}) {
|
||||
return binding.create(options)
|
||||
},
|
||||
|
||||
fromId (id) {
|
||||
return binding.fromId(id)
|
||||
}
|
||||
return binding.create(options)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue