浏览代码

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 年之前
父节点
当前提交
09285ee721
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      deltachat-ios/Controller/WebxdcViewController.swift

+ 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 {