]> khamidou — GitHub mirrors - electron.git/commitdiff
Revert "app.makeSingleInstance is not available on OS X"
authorCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 09:03:18 +0000 (17:03 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 09:03:18 +0000 (17:03 +0800)
This reverts commit bcb78ebc00e9f04299fd26955b3aa0e97c20a2e4.

atom/browser/api/atom_api_app.cc
docs/api/app.md

index a9011c6e2e75ac2c0e02d1f9b89fc87e88905c46..42feaf8dc4ec4216ef773f727b29b4596ab7c208 100644 (file)
@@ -288,10 +288,6 @@ v8::Local<v8::Value> App::DefaultSession(v8::Isolate* isolate) {
 
 bool App::MakeSingleInstance(
     const ProcessSingleton::NotificationCallback& callback) {
-#if defined(OS_MACOSX)
-  LOG(ERROR) << "MakeSingleInstance is not implemnted on OS X";
-  return false;
-#endif
   if (process_singleton_.get())
     return false;
 
index bd017456a78ca1e70b3dc023f3e4c496ca7e4f51..95aa80b6dc8345b57b71db9bd1253da121fd4496 100644 (file)
@@ -290,7 +290,7 @@ URLs that fall under "Local Intranet" sites (i.e. are in the same domain as you)
 However, this detection often fails when corporate networks are badly configured,
 so this lets you co-opt this behavior and enable it for all URLs.
 
-### `app.makeSingleInstance(callback)` _Windows_ _Linux_
+### `app.makeSingleInstance(callback)`
 
 * `callback` Function