From f14e026e04931665cfb0ed492f4094e422f5534f Mon Sep 17 00:00:00 2001 From: Juan Manuel Pereira Date: Tue, 20 Feb 2024 16:12:55 -0300 Subject: [PATCH] Address comments --- DuckDuckGo/Common/Extensions/WKWebViewExtension.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DuckDuckGo/Common/Extensions/WKWebViewExtension.swift b/DuckDuckGo/Common/Extensions/WKWebViewExtension.swift index 6ad8fa4070..4c70d4bacc 100644 --- a/DuckDuckGo/Common/Extensions/WKWebViewExtension.swift +++ b/DuckDuckGo/Common/Extensions/WKWebViewExtension.swift @@ -155,7 +155,6 @@ extension WKWebView { guard newState != mutedState else { return } self._setPageMuted(newState) #endif - return } /// Returns the audio state of the WKWebView. @@ -164,7 +163,9 @@ extension WKWebView { /// `unmuted` if the web view is unmuted /// `notSupported` if the web view does not support fetching the current audio state func audioState() -> AudioState { -#if !APPSTORE +#if APPSTORE + return .notSupported +#else guard self.responds(to: #selector(WKWebView._mediaMutedState)) else { assertionFailure("WKWebView does not respond to selector _mediaMutedState") return .notSupported @@ -173,8 +174,6 @@ extension WKWebView { let mutedState = self._mediaMutedState() return mutedState.contains(.audioMuted) ? .muted : .unmuted -#else - return .notSupported #endif }