Firefox Fix: change host to match Firefox iOS app change

This commit is contained in:
Joe Gasiorek 2017-08-11 13:27:12 -07:00
parent d1e9571093
commit 7e63347ba9

View file

@ -1710,7 +1710,7 @@
return;
} else if ([storyBrowser isEqualToString:@"firefox"]) {
NSString *encodedURL = [url.absoluteString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]];
NSString *firefoxURL = [NSString stringWithFormat:@"%@%@", @"firefox://?url=", encodedURL];
NSString *firefoxURL = [NSString stringWithFormat:@"%@%@", @"firefox://open-url?url=", encodedURL];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:firefoxURL] options:@{} completionHandler:nil];
} else if ([storyBrowser isEqualToString:@"inappsafari"]) {
self.safariViewController = [[SFSafariViewController alloc] initWithURL:url