Embed about & release notes, so that these files can eventually match the current app.

This commit is contained in:
Frank Denis
2012-08-08 00:36:39 -07:00
parent ebfc8e667a
commit ed1c7d679c
6 changed files with 144 additions and 4 deletions
+4 -4
View File
@@ -306,14 +306,14 @@ DNSConfigurationState currentState = kDNS_CONFIGURATION_UNKNOWN;
[_releaseNotesWebView setDrawsBackground:false];
[_releaseNotesWebView setShouldUpdateWhileOffscreen:true];
[_releaseNotesWebView setUIDelegate:self];
NSString *releaseNotesURLText = @"http://dnscrypt.opendns.com/releasenotes.php";
[[_releaseNotesWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:releaseNotesURLText]]];
NSURL *releaseNotesURL = [NSURL fileURLWithPath: [[NSBundle bundleForClass:[self class]] pathForResource: @"html/releasenotes" ofType: @"html"] isDirectory: NO];
[[_releaseNotesWebView mainFrame] loadRequest:[NSURLRequest requestWithURL: releaseNotesURL]];
[_aboutWebView setDrawsBackground:false];
[_aboutWebView setShouldUpdateWhileOffscreen:true];
[_aboutWebView setUIDelegate:self];
NSString *aboutURLText = @"http://dnscrypt.opendns.com/about.php";
[[_aboutWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:aboutURLText]]];
NSURL *aboutURL = [NSURL fileURLWithPath: [[NSBundle bundleForClass:[self class]] pathForResource: @"html/about" ofType: @"html"] isDirectory: NO];
[[_aboutWebView mainFrame] loadRequest:[NSURLRequest requestWithURL: aboutURL]];
}
- (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element