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:
trop[bot] 2018-07-30 13:02:32 +10:00 committed by Samuel Attard
parent 29f70d7e35
commit 2bdb7a5047
4 changed files with 9 additions and 9 deletions

View file

@ -311,9 +311,9 @@ void BrowserWindow::SetBrowserView(v8::Local<v8::Value> value) {
#endif
}
void BrowserWindow::SetVibrancy(mate::Arguments* args) {
std::string type;
args->GetNext(&type);
void BrowserWindow::SetVibrancy(v8::Isolate* isolate,
v8::Local<v8::Value> value) {
std::string type = mate::V8ToString(value);
auto* render_view_host = web_contents()->GetRenderViewHost();
if (render_view_host) {
@ -324,7 +324,7 @@ void BrowserWindow::SetVibrancy(mate::Arguments* args) {
impl->SetBackgroundOpaque(type.empty() ? !window_->transparent() : false);
}
TopLevelWindow::SetVibrancy(args);
TopLevelWindow::SetVibrancy(isolate, value);
}
void BrowserWindow::FocusOnWebView() {