Skip to content

Commit f8216fa

Browse files
committed
Fix uncaught exception warnings of SetZoomLevel
Fix nwjs#1395
1 parent 6dbaafb commit f8216fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/window_bindings.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ WindowBindings::CallObjectMethodSync(const v8::FunctionCallbackInfo<v8::Value>&
171171
double zoom_level = args[2]->ToNumber()->Value();
172172
render_view->OnSetZoomLevel(zoom_level);
173173
args.GetReturnValue().Set(v8::Undefined());
174+
return;
174175
}
175176
args.GetReturnValue().Set(remote::CallObjectMethodSync(routing_id, object_id, "Window", method, args[2]));
176177
}

0 commit comments

Comments
 (0)