1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

macOS/iOS: Removed unused WKWebViewConfiguration object in the WebBrowserComponent native implementation

This commit is contained in:
ed 2021-06-04 15:28:06 +01:00
parent 77ad8b23bb
commit 27ead031c0

View file

@ -272,20 +272,13 @@ public:
{
ignoreUnused (owner);
WKWebViewConfiguration* config = [[WKWebViewConfiguration alloc] init];
#if JUCE_MAC
auto frame = NSMakeRect (0, 0, 100.0f, 100.0f);
static WebViewKeyEquivalentResponder webviewClass;
webView = (WKWebView*) webviewClass.createInstance();
webView = [webView initWithFrame: frame
configuration: config];
webView = [webView initWithFrame: NSMakeRect (0, 0, 100.0f, 100.0f)];
#else
auto frame = CGRectMake (0, 0, 100.0f, 100.0f);
webView = [[WKWebView alloc] initWithFrame: frame
configuration: config];
webView = [[WKWebView alloc] initWithFrame: CGRectMake (0, 0, 100.0f, 100.0f)];
#endif
static WebViewDelegateClass cls;