} return self;
}
+- (NSString *) applicationNameForUserAgent {
+ return nil;
+}
+
- (void) loadView {
CGRect bounds([[UIScreen mainScreen] applicationFrame]);
[preferences setJavaScriptCanOpenWindowsAutomatically:YES];
[preferences setOfflineWebApplicationCacheEnabled:YES];
+ if (NSString *agent = [self applicationNameForUserAgent])
+ [webview setApplicationNameForUserAgent:agent];
+
if ([webview respondsToSelector:@selector(setShouldUpdateWhileOffscreen:)])
[webview setShouldUpdateWhileOffscreen:NO];