Skip to content

Commit

Permalink
Fixes issues with plugins not loading in macOS Mojave (issue radiant-…
Browse files Browse the repository at this point in the history
  • Loading branch information
xrubioj committed Oct 30, 2018
1 parent 5a2601d commit f10ccae
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 f10ccae

Please sign in to comment.