mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 00:30:51 +01:00
Disallow automatic playback for all media types.
This commit is contained in:
parent
565b3ac2c3
commit
d90e59439d
@ -98,6 +98,7 @@ final class DetailWebViewController: NSViewController {
|
|||||||
configuration.preferences = preferences
|
configuration.preferences = preferences
|
||||||
configuration.defaultWebpagePreferences.allowsContentJavaScript = AppDefaults.shared.isArticleContentJavascriptEnabled
|
configuration.defaultWebpagePreferences.allowsContentJavaScript = AppDefaults.shared.isArticleContentJavascriptEnabled
|
||||||
configuration.setURLSchemeHandler(detailIconSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme)
|
configuration.setURLSchemeHandler(detailIconSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme)
|
||||||
|
configuration.mediaTypesRequiringUserActionForPlayback = .all
|
||||||
|
|
||||||
let userContentController = WKUserContentController()
|
let userContentController = WKUserContentController()
|
||||||
userContentController.add(self, name: MessageName.windowDidScroll)
|
userContentController.add(self, name: MessageName.windowDidScroll)
|
||||||
|
Loading…
Reference in New Issue
Block a user