Skip to content

Commit

Permalink
fix: options parsing in win.setVisibleOnAllWorkspaces()
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed Jan 6, 2022
1 parent 30e0620 commit c12cb4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shell/browser/api/electron_api_base_window.cc
Expand Up @@ -854,10 +854,10 @@ void BaseWindow::SetVisibleOnAllWorkspaces(bool visible,
gin_helper::Dictionary options;
bool visibleOnFullScreen = false;
bool skipTransformProcessType = false;
args->GetNext(&options) &&
options.Get("visibleOnFullScreen", &visibleOnFullScreen);
args->GetNext(&options) &&
options.Get("skipTransformProcessType", &skipTransformProcessType);
if (args->GetNext(&options)) {
options.Get("visibleOnFullScreen", &visibleOnFullScreen);
options.Get("skipTransformProcessType", &skipTransformProcessType);
}
return window_->SetVisibleOnAllWorkspaces(visible, visibleOnFullScreen,
skipTransformProcessType);
}
Expand Down

0 comments on commit c12cb4c

Please sign in to comment.