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

Commit f6730dc

Browse files
Merge pull request #670 from xrubioj/mojave-compatibility
Fixes issues with plugins not loading in macOS Mojave (issue #668)
2 parents 5a2601d + f10ccae commit f6730dc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: radiant-player-mac/WebView/CustomWebView.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ - (void)awakeFromNib
2929
[self setAutoresizesSubviews:YES];
3030
[self setAcceptsTouchEvents:YES];
3131
[self addSubview:swipeView];
32+
33+
// Workaround for issue #668 Crashes upon open in Mac OS Mojave
34+
// https://github.com/radiant-player/radiant-player-mac/issues/668
35+
// Sets UserAgent to Safari Version 12.0 (14606.1.36.1.9) running in macOS Mojave 10.14
36+
[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"];
3237

3338
[self setResourceLoadDelegate:self];
3439
[self setUIDelegate:self];
@@ -321,4 +326,4 @@ - (NSPoint)touchPositionForTouches:(NSSet *)touches
321326
return position;
322327
}
323328

324-
@end
329+
@end

0 commit comments

Comments
 (0)