]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/WebViewController.mm
If you get an error while refreshing you cannot allow an essential upgrade dialog...
[cydia.git] / CyteKit / WebViewController.mm
index 964e5237e6e28adb6953ee4b224dfef3feace71f..76379fb61f9ac1f2ea17289196f87a04d78d4710 100644 (file)
@@ -775,6 +775,10 @@ float CYScrollViewDecelerationRateNormal;
     } return self;
 }
 
+- (NSString *) applicationNameForUserAgent {
+    return nil;
+}
+
 - (void) loadView {
     CGRect bounds([[UIScreen mainScreen] applicationFrame]);
 
@@ -812,6 +816,9 @@ float CYScrollViewDecelerationRateNormal;
     [preferences setJavaScriptCanOpenWindowsAutomatically:YES];
     [preferences setOfflineWebApplicationCacheEnabled:YES];
 
+    if (NSString *agent = [self applicationNameForUserAgent])
+        [webview setApplicationNameForUserAgent:agent];
+
     if ([webview respondsToSelector:@selector(setShouldUpdateWhileOffscreen:)])
         [webview setShouldUpdateWhileOffscreen:NO];