Wire up the final callback to JS
This commit is contained in:
parent
63417bc975
commit
a2eedcc027
1 changed files with 4 additions and 1 deletions
|
@ -272,7 +272,10 @@ v8::Local<v8::Value> App::DefaultSession(v8::Isolate* isolate) {
|
|||
bool App::OnProcessSingletonNotification(
|
||||
const base::CommandLine& command_line,
|
||||
const base::FilePath& current_directory) {
|
||||
return true;
|
||||
ProcessSingleton::NotificationCallback cb;
|
||||
mate::Converter<ProcessSingleton::NotificationCallback>::FromV8(isolate(), single_instance_callback_, &cb);
|
||||
|
||||
return cb.Run(command_line, current_directory);
|
||||
}
|
||||
|
||||
bool App::MakeSingleInstance(v8::Local<v8::Function> callback) {
|
||||
|
|
Loading…
Reference in a new issue