소스 검색

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 {