diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index aba453e50b9c..399b4d36d2ec 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -79,6 +79,7 @@ Window::Window(v8::Isolate* isolate, const mate::Dictionary& options) { options.Get(options::kWebPreferences, &web_preferences); // Copy the backgroundColor to webContents. + v8::Local value; if (options.Get(options::kBackgroundColor, &value)) web_preferences.Set(options::kBackgroundColor, value);