Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39e0731 commit d3d5136Copy full SHA for d3d5136
1 file changed
src/api/dispatcher.cc
@@ -215,7 +215,9 @@ void Dispatcher::willHandleNavigationPolicy(
215
216
v8::Isolate* isolate = v8::Isolate::GetCurrent();
217
218
- v8::Handle<v8::Value> id_val = nwapi::Dispatcher::GetWindowId(web_view->mainFrame());
+ v8::Handle<v8::Value> id_val;
219
+ if (web_view->mainFrame() && !web_view->mainFrame()->mainWorldScriptContext().IsEmpty())
220
+ id_val = nwapi::Dispatcher::GetWindowId(web_view->mainFrame());
221
if (id_val.IsEmpty())
222
return;
223
if (id_val->IsUndefined() || id_val->IsNull())
0 commit comments