Przeglądaj źródła

since content rule lists are global, we need a distict name for webxdc filter rules so that they don't interfere with help or the full message html view

cyberta 3 lat temu
rodzic
commit
09285ee721

+ 2 - 1
deltachat-ios/Controller/WebxdcViewController.swift

@@ -92,8 +92,9 @@ class WebxdcViewController: WebViewViewController {
 
 
     private func loadRestrictedHtml() {
+        // TODO: compile only once
         WKContentRuleListStore.default().compileContentRuleList(
-                forIdentifier: "ContentBlockingRules",
+                forIdentifier: "WebxdcContentBlockingRules",
                 encodedContentRuleList: blockRules) { (contentRuleList, error) in
 
             guard let contentRuleList = contentRuleList, error == nil else {