mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add read-only version to planned 2.0 API
This commit is contained in:
@@ -112,6 +112,7 @@ void AtomBindings::BindTo(v8::Isolate* isolate,
|
||||
|
||||
mate::Dictionary versions;
|
||||
if (dict.Get("versions", &versions)) {
|
||||
// TODO(kevinsawicki): Make read-only in 2.0 to match node
|
||||
versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);
|
||||
versions.Set("chrome", CHROME_VERSION_STRING);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user