Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Safari cookies fix, version bump 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhomes committed Oct 16, 2014
1 parent 70a1407 commit b95d380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions radiant-player-mac/WebView/CustomWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand All @@ -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];
}
Expand Down
2 changes: 1 addition & 1 deletion radiant-player-mac/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.0</string>
<string>1.3.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>LSApplicationCategoryType</key>
Expand Down

0 comments on commit b95d380

Please sign in to comment.