1
0
Fork 0
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:
Martin Kosdy 2025-11-05 15:06:41 +01:00
parent 1b460fe089
commit c70d471afe

View file

@ -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);