Permalink
Browse files

prepare for FB/TW login

  • Loading branch information...
1 parent 4d16b53 commit 3b52d4e407eb2b0883a975e3ce4f576582f460f1 @vdemay committed Aug 1, 2012
Binary file not shown.
@@ -369,7 +369,7 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
if ([[url absoluteString] hasPrefix:@"http://si.ok"]) {
[self dialogDidSucceed:url];
return NO;
- } else if (navigationType == UIWebViewNavigationTypeLinkClicked) {
+ } /*else if (navigationType == UIWebViewNavigationTypeLinkClicked) {
if ([_delegate respondsToSelector:@selector(dialog:shouldOpenURLInExternalBrowser:)]) {
if (![_delegate dialog:self shouldOpenURLInExternalBrowser:url]) {
return NO;
@@ -378,7 +378,7 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
[[UIApplication sharedApplication] openURL:request.URL];
return NO;
- }
+ }*/
return YES;
}
@@ -26,7 +26,7 @@
#define BASE_URL @"http://www.scoop.it/"
-//#define BASE_URL @"http://10.0.0.144:8888/"
+//#define BASE_URL @"http://10.0.0.138:8888/"
typedef enum SIRequestType {
@@ -196,7 +196,7 @@ - (void)dialog:(SIDialog*)dialog didFailWithError:(NSError*)error {
}
- (BOOL)dialog:(SIDialog*)dialog shouldOpenURLInExternalBrowser:(NSURL*)url {
- return YES;
+ return NO;
}

0 comments on commit 3b52d4e

Please sign in to comment.