From f10ccaea87dccf55d448b5815b8b95c012781bd6 Mon Sep 17 00:00:00 2001 From: Xavier Rubio Jansana Date: Tue, 30 Oct 2018 19:53:33 +0100 Subject: [PATCH] Fixes issues with plugins not loading in macOS Mojave (issue #668) --- radiant-player-mac/WebView/CustomWebView.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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