diff --git a/radiant-player-mac/WebView/CustomWebView.m b/radiant-player-mac/WebView/CustomWebView.m index 5deaf472..ff4e47e0 100644 --- a/radiant-player-mac/WebView/CustomWebView.m +++ b/radiant-player-mac/WebView/CustomWebView.m @@ -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]; @@ -321,4 +326,4 @@ - (NSPoint)touchPositionForTouches:(NSSet *)touches return position; } -@end \ No newline at end of file +@end