mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
WebBrowserComponent: Enable Safari Web Inspector in debug builds
This commit is contained in:
parent
1b460fe089
commit
c70d471afe
1 changed files with 4 additions and 0 deletions
|
|
@ -893,6 +893,10 @@ public:
|
|||
configuration: config.get()]);
|
||||
#endif
|
||||
|
||||
#if JUCE_DEBUG
|
||||
[webView.get() setValue:@(true) forKey:@"inspectable"];
|
||||
#endif
|
||||
|
||||
if (const auto userAgent = browserOptions.getUserAgent(); userAgent.isNotEmpty())
|
||||
webView.get().customUserAgent = juceStringToNS (userAgent);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue