File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ struct BrowserView: View {
5858 `;
5959 document.head.appendChild(adBlockStyle);
6060 """
61- let adBlockInject = WKUserScript ( source: adBlockerScript, injectionTime: . atDocumentEnd, forMainFrameOnly: true )
61+ let adBlockInject = WKUserScript ( source: adBlockerScript, injectionTime: . atDocumentEnd, forMainFrameOnly: false )
6262 webView. configuration. userContentController. addUserScript ( adBlockInject)
6363
64- let CSSInject = WKUserScript ( source: styleSheet, injectionTime: . atDocumentEnd, forMainFrameOnly: true )
64+ let CSSInject = WKUserScript ( source: styleSheet, injectionTime: . atDocumentEnd, forMainFrameOnly: false )
6565 webView. configuration. userContentController. addUserScript ( CSSInject)
6666
6767 // Loads URL when app opens
You can’t perform that action at this time.
0 commit comments