From: Jay Freeman (saurik) Date: Tue, 1 Mar 2011 22:34:00 +0000 (-0800) Subject: Rename cydia.divert() to cydia.addInternalRedirect(). X-Git-Tag: v1.1.0%b1~84 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/3f428e4e0cdd27684edefebc83737cc8a8b233f3 Rename cydia.divert() to cydia.addInternalRedirect(). --- diff --git a/MobileCydia.mm b/MobileCydia.mm index e26cd877..9ab0c64a 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3970,14 +3970,14 @@ static NSMutableSet *Diversions_; if (false); else if (selector == @selector(addBridgedHost:)) return @"addBridgedHost"; + else if (selector == @selector(addInternalRedirect::)) + return @"addInternalRedirect"; else if (selector == @selector(addPipelinedHost:scheme:)) return @"addPipelinedHost"; else if (selector == @selector(addTrivialSource:)) return @"addTrivialSource"; else if (selector == @selector(close)) return @"close"; - else if (selector == @selector(divert::)) - return @"divert"; else if (selector == @selector(du:)) return @"du"; else if (selector == @selector(stringWithFormat:arguments:)) @@ -4054,7 +4054,7 @@ static NSMutableSet *Diversions_; return [feature isEqualToString:@"window.open"]; } -- (void) divert:(NSString *)from :(NSString *)to { +- (void) addInternalRedirect:(NSString *)from :(NSString *)to { [CydiaWebViewController performSelectorOnMainThread:@selector(addDiversion:) withObject:[[[Diversion alloc] initWithFrom:from to:to] autorelease] waitUntilDone:NO]; }