mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Make unwatchPath spec make a valid negative assertion and return the watchId from $native.watchPath
This commit is contained in:
@@ -296,7 +296,8 @@ bool NativeHandler::Execute(const CefString& name,
|
||||
context->Exit();
|
||||
};
|
||||
|
||||
[PathWatcher watchPath:path callback:[[callback copy] autorelease]];
|
||||
NSString *watchId = [PathWatcher watchPath:path callback:[[callback copy] autorelease]];
|
||||
retval = CefV8Value::CreateString([watchId UTF8String]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user