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

Commit

Permalink
Merge pull request #670 from xrubioj/mojave-compatibility
Browse files Browse the repository at this point in the history
Fixes issues with plugins not loading in macOS Mojave (issue #668)
  • Loading branch information
jacobwgillespie authored Nov 6, 2018
2 parents 5a2601d + f10ccae commit f6730dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion radiant-player-mac/WebView/CustomWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ - (void)awakeFromNib
[self setAutoresizesSubviews:YES];
[self setAcceptsTouchEvents:YES];
[self addSubview:swipeView];

// Workaround for issue #668 Crashes upon open in Mac OS Mojave
// https://github.com/radiant-player/radiant-player-mac/issues/668
// Sets UserAgent to Safari Version 12.0 (14606.1.36.1.9) running in macOS Mojave 10.14
[self setApplicationNameForUserAgent:@"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15"];

[self setResourceLoadDelegate:self];
[self setUIDelegate:self];
Expand Down Expand Up @@ -321,4 +326,4 @@ - (NSPoint)touchPositionForTouches:(NSSet *)touches
return position;
}

@end
@end

0 comments on commit f6730dc

Please sign in to comment.