fix: window.setVibrancy parameter passing (#13627)

* fix: setVibrancy parameter passing

* fix: uses correct parameter types for setVibrancy
This commit is contained in:
Gellert Hegyi 2018-07-30 03:29:18 +02:00 committed by Samuel Attard
parent 69f6bd921b
commit 4bcf0e34c5
4 changed files with 9 additions and 9 deletions

View file

@ -699,9 +699,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);
}