diff --git a/radiant-player-mac/WebView/CustomWebView.m b/radiant-player-mac/WebView/CustomWebView.m index fc816cc6..72a50f60 100644 --- a/radiant-player-mac/WebView/CustomWebView.m +++ b/radiant-player-mac/WebView/CustomWebView.m @@ -106,6 +106,9 @@ - (NSURLRequest *)webView:(WebView *)sender resource:(id)identifier willSendRequ - (void)webView:(WebView *)sender resource:(id)identifier didReceiveResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)dataSource { + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"cookies.use-safari"] == YES) + return; + if ([response isKindOfClass:[NSHTTPURLResponse class]]) { [[CookieStorage instance] handleCookiesInResponse:(NSHTTPURLResponse *)response]; } @@ -114,6 +117,9 @@ - (void)webView:(WebView *)sender resource:(id)identifier didReceiveResponse:(NS - (void)handleCookiesForRequest:(NSMutableURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse { + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"cookies.use-safari"] == YES) + return; + if ([redirectResponse isKindOfClass:[NSHTTPURLResponse class]]) { [[CookieStorage instance] handleCookiesInResponse:(NSHTTPURLResponse *)redirectResponse]; } diff --git a/radiant-player-mac/info.plist b/radiant-player-mac/info.plist index f07037f7..1b37c702 100644 --- a/radiant-player-mac/info.plist +++ b/radiant-player-mac/info.plist @@ -21,7 +21,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.3.0 + 1.3.1 CFBundleSignature ???? LSApplicationCategoryType