Script policy UI adjustments

This commit is contained in:
James Magahern
2021-06-14 15:46:01 -07:00
parent 52b3f7fe0a
commit ecee3bd9bb
4 changed files with 64 additions and 187 deletions

View File

@@ -505,6 +505,8 @@ class BrowserViewController: UIViewController
iconView.shieldsDown = tab.javaScriptEnabled
iconView.someScriptsAllowed = scriptsAllowedForHost
iconView.setBlockedScriptsNumber(numBlockedScripts)
iconView.isEnabled = (webView.url != nil)
}
public func createNewTab(withURL url: URL?) {