mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Disable audio autoplay on macOS
- To be in-line with how this is threated on iOS
This commit is contained in:
committed by
Brent Simmons
parent
e6a11197fe
commit
389c8529cc
@@ -98,6 +98,7 @@ final class DetailWebViewController: NSViewController {
|
||||
configuration.preferences = preferences
|
||||
configuration.defaultWebpagePreferences.allowsContentJavaScript = AppDefaults.shared.isArticleContentJavascriptEnabled
|
||||
configuration.setURLSchemeHandler(detailIconSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme)
|
||||
configuration.mediaTypesRequiringUserActionForPlayback = .audio
|
||||
|
||||
let userContentController = WKUserContentController()
|
||||
userContentController.add(self, name: MessageName.windowDidScroll)
|
||||
|
||||
Reference in New Issue
Block a user