mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: defaults broken in shell.openExternal() options (#38072)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
@@ -59,13 +59,11 @@ v8::Local<v8::Promise> OpenExternal(const GURL& url, gin::Arguments* args) {
|
||||
v8::Local<v8::Promise> handle = promise.GetHandle();
|
||||
|
||||
platform_util::OpenExternalOptions options;
|
||||
if (args->Length() >= 2) {
|
||||
gin::Dictionary obj(nullptr);
|
||||
if (args->GetNext(&obj)) {
|
||||
obj.Get("activate", &options.activate);
|
||||
obj.Get("workingDirectory", &options.working_dir);
|
||||
obj.Get("logUsage", &options.log_usage);
|
||||
}
|
||||
gin_helper::Dictionary obj;
|
||||
if (args->GetNext(&obj)) {
|
||||
obj.Get("activate", &options.activate);
|
||||
obj.Get("workingDirectory", &options.working_dir);
|
||||
obj.Get("logUsage", &options.log_usage);
|
||||
}
|
||||
|
||||
platform_util::OpenExternal(
|
||||
|
||||
Reference in New Issue
Block a user