You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/01/18 20:51:30 UTC
ios commit: Remove a debugging log statement.
Updated Branches:
refs/heads/master 07a223ee6 -> bcc90d23c
Remove a debugging log statement.
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/bcc90d23
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/bcc90d23
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/bcc90d23
Branch: refs/heads/master
Commit: bcc90d23c4b64d8fe8a388ba938f27b1d5737b7b
Parents: 07a223e
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Jan 18 14:50:28 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Jan 18 14:50:28 2013 -0500
----------------------------------------------------------------------
CordovaLib/Classes/CDVUserAgentUtil.m | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/bcc90d23/CordovaLib/Classes/CDVUserAgentUtil.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVUserAgentUtil.m b/CordovaLib/Classes/CDVUserAgentUtil.m
index dd24fdc..ac5c994 100644
--- a/CordovaLib/Classes/CDVUserAgentUtil.m
+++ b/CordovaLib/Classes/CDVUserAgentUtil.m
@@ -57,12 +57,12 @@ static NSString* kCdvUserAgentVersionKey = @"Cordova-User-Agent-Version";
+ (void)setUserAgent:(NSString*)newValue
{
- NSLog(@"Set UA to %@", newValue);
// Setting the UserAgent must occur before a UIWebView is instantiated.
// It is read per instantiation, so it does not affect previously created views.
// Except! When a PDF is loaded, all currently active UIWebViews reload their
// User-Agent from the NSUserDefaults some time after the DidFinishLoad of the PDF bah!
NSDictionary* dict = [[NSDictionary alloc] initWithObjectsAndKeys:newValue, @"UserAgent", nil];
+
[[NSUserDefaults standardUserDefaults] registerDefaults:dict];
}