fix: window.setVibrancy parameter passing (backport: 3-0-x) (#13863)
* fix: setVibrancy parameter passing * fix: uses correct parameter types for setVibrancy
This commit is contained in:
parent
29f70d7e35
commit
2bdb7a5047
4 changed files with 9 additions and 9 deletions
|
@ -692,9 +692,9 @@ void TopLevelWindow::SetAutoHideCursor(bool auto_hide) {
|
|||
window_->SetAutoHideCursor(auto_hide);
|
||||
}
|
||||
|
||||
void TopLevelWindow::SetVibrancy(mate::Arguments* args) {
|
||||
std::string type;
|
||||
args->GetNext(&type);
|
||||
void TopLevelWindow::SetVibrancy(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> value) {
|
||||
std::string type = mate::V8ToString(value);
|
||||
window_->SetVibrancy(type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue