Slightly different behaviour for opening URLs.
1.0.4b2
Slightly different behaviour for opening URLs.
--- a/Sources/UserInterface/WebPageController.m
+++ b/Sources/UserInterface/WebPageController.m
@@ -609,17 +609,17 @@ static BOOL IsSafariURL(NSString* url)
/**
* Open the specified URL. Based on the type of URL and the user's settings, the URL is either
* opened in the in-app browser, in a native app or in Safari.
*/
+ (void) openURL: (NSString*) destination withTitle: (NSString*) title
{
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
- if (([defaults boolForKey: @"useSafari"] && IsSafariURL(destination)) || ([defaults boolForKey: @"useNativeApps"] && IsNativeAppURL(destination))) {
+ if (([defaults boolForKey: @"useSafari"] /* && IsSafariURL(destination) */) || ([defaults boolForKey: @"useNativeApps"] && IsNativeAppURL(destination))) {
[[UIApplication sharedApplication] openURL: [NSURL URLWithUnicodeString: destination]];
} else {
WeaveAppDelegate* appDelegate = (WeaveAppDelegate*) [[UIApplication sharedApplication] delegate];
WebPageController* web = [appDelegate webController];
[TapActionController slideWebBrowserIn];
[web loadLocation: destination withTitle: title];
}
}