Separate LoadEnvironment from CreateEnvironment
This commit is contained in:
parent
854c59df5c
commit
5e58915bdd
4 changed files with 10 additions and 3 deletions
|
@ -148,6 +148,7 @@ void AtomRendererClient::DidCreateScriptContext(blink::WebFrame* frame,
|
|||
|
||||
// Setup node environment for each window.
|
||||
node::Environment* env = node_bindings_->CreateEnvironment(context);
|
||||
node_bindings_->LoadEnvironment(env);
|
||||
|
||||
// Add atom-shell extended APIs.
|
||||
atom_bindings_->BindToFrame(frame);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue