app.makeSingleInstance is not available on OS X
This commit is contained in:
parent
310954713f
commit
bcb78ebc00
2 changed files with 5 additions and 1 deletions
|
@ -278,6 +278,10 @@ v8::Local<v8::Value> App::DefaultSession(v8::Isolate* isolate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool App::MakeSingleInstance(ProcessSingleton::NotificationCallback callback) {
|
bool App::MakeSingleInstance(ProcessSingleton::NotificationCallback callback) {
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
|
LOG(ERROR) << "MakeSingleInstance is not implemnted on OS X";
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
if (process_singleton_.get())
|
if (process_singleton_.get())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -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,
|
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.
|
so this lets you co-opt this behavior and enable it for all URLs.
|
||||||
|
|
||||||
### `app.makeSingleInstance(callback)`
|
### `app.makeSingleInstance(callback)` _Windows_ _Linux_
|
||||||
|
|
||||||
* `callback` Function
|
* `callback` Function
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue