Преглед на файлове

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 {