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 }