Set process.versions['electron']
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 06:18:20 +0000 (14:18 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 06:18:20 +0000 (14:18 +0800)
atom/common/api/atom_bindings.cc

index 4c827e0..202819e 100644 (file)
@@ -63,7 +63,8 @@ void AtomBindings::BindTo(v8::Isolate* isolate,
 
   mate::Dictionary versions;
   if (dict.Get("versions", &versions)) {
-    versions.Set("atom-shell", ATOM_VERSION_STRING);
+    versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);
+    versions.Set("atom-shell", ATOM_VERSION_STRING);  // For compatibility.
     versions.Set("chrome", CHROME_VERSION_STRING);
   }
 }