]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: Set process.mas to true for MAS build
authorCheng Zhao <zcbenz@gmail.com>
Mon, 28 Sep 2015 07:07:49 +0000 (15:07 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 14 Oct 2015 03:53:52 +0000 (11:53 +0800)
atom/common/api/atom_bindings.cc

index 8fb2efd3a3f9948e5c13b4d61597c7276a72e1c2..06fc30e7e3cd43a393cbe65b14a59c7a1bc25873 100644 (file)
@@ -72,6 +72,10 @@ void AtomBindings::BindTo(v8::Isolate* isolate,
   // Do not warn about deprecated APIs.
   dict.Set("noDeprecation", true);
 
+#if defined(MAS_BUILD)
+  dict.Set("mas", true);
+#endif
+
   mate::Dictionary versions;
   if (dict.Get("versions", &versions)) {
     versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);