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:
parent
77ad8b23bb
commit
27ead031c0
1 changed files with 2 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue