Fix YouTube fullscreen on iOS devices

This commit is contained in:
Maurice Parker
2023-04-13 15:59:36 -05:00
parent f21cd774db
commit eefd5d79da
6 changed files with 95 additions and 12 deletions

View File

@@ -545,6 +545,7 @@ private extension WebViewController {
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasClicked)
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasShown)
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.showFeedInspector)
webView.configuration.userContentController.addUserScript(forResource: "inject", withExtension: "js")
self.renderPage(webView)