Set process.versions['electron']

This commit is contained in:
Cheng Zhao 2015-04-14 14:18:20 +08:00
parent ecc14dd023
commit b86f149512

View 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);
}
}