]> git.saurik.com Git - cydia.git/commitdiff
Stupid fix for keeping apptapp: urls from opening in a new window.
authorJay Freeman (saurik) <saurik@saurk.com>
Fri, 25 Apr 2008 13:09:34 +0000 (13:09 +0000)
committerJay Freeman (saurik) <saurik@saurk.com>
Fri, 25 Apr 2008 13:09:34 +0000 (13:09 +0000)
Cydia.mm

index 00360899cae38df843b06b9b8b87d51d251ded96..c2cbb24e5e6ee838a2dbf3df8612861314fba5e6 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -3113,6 +3113,8 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString
 }
 
 - (WebView *) webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)request {
+    if ([[[request URL] scheme] isEqualToString:@"apptapp"])
+        return nil;
     [self setBackButtonTitle:title_];
     BrowserView *browser = [[[BrowserView alloc] initWithBook:book_ database:database_] autorelease];
     [browser setDelegate:delegate_];