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

Fixes issues with plugins not loading in macOS Mojave (issue #668) #670

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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