Fix compilation error
authorCheng Zhao <zcbenz@gmail.com>
Sat, 7 May 2016 01:38:41 +0000 (10:38 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 7 May 2016 01:38:41 +0000 (10:38 +0900)
atom/browser/api/atom_api_window.cc

index aba453e..399b4d3 100644 (file)
@@ -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<v8::Value> value;
   if (options.Get(options::kBackgroundColor, &value))
     web_preferences.Set(options::kBackgroundColor, value);