From a07b2a71faa95fdd454637591226f1dc2bca7493 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 25 Apr 2008 13:09:34 +0000 Subject: Stupid fix for keeping apptapp: urls from opening in a new window. --- Cydia.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cydia.mm b/Cydia.mm index 0036089..c2cbb24 100644 --- 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_]; -- cgit v1.2.3