File tree 2 files changed +12
-12
lines changed
ExponeaSDK/ExponeaSDK/Classes
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -307,12 +307,10 @@ public class ExponeaInternal: ExponeaType {
307
307
processSavedCampaignData ( )
308
308
configuration. saveToUserDefaults ( )
309
309
310
- onMain {
311
- self . inAppContentBlocksManager = InAppContentBlocksManager . manager
312
- self . inAppContentBlocksManager? . initBlocker ( )
313
- self . inAppContentBlocksManager? . loadInAppContentBlockMessages { [ weak self] in
314
- self ? . inAppContentBlocksManager? . prefetchPlaceholdersWithIds ( ids: configuration. inAppContentBlocksPlaceholders ?? [ ] )
315
- }
310
+ self . inAppContentBlocksManager = InAppContentBlocksManager . manager
311
+ self . inAppContentBlocksManager? . initBlocker ( )
312
+ self . inAppContentBlocksManager? . loadInAppContentBlockMessages { [ weak self] in
313
+ self ? . inAppContentBlocksManager? . prefetchPlaceholdersWithIds ( ids: configuration. inAppContentBlocksPlaceholders ?? [ ] )
316
314
}
317
315
318
316
if isDebugModeEnabled {
Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ final class InAppContentBlocksManager: NSObject {
73
73
}
74
74
75
75
func initBlocker( ) {
76
- WKContentRuleListStore . default ( ) . compileContentRuleList (
77
- forIdentifier: " ContentBlockingRules " ,
78
- encodedContentRuleList: blockRules
79
- ) { contentRuleList, error in
80
- guard error == nil else { return }
81
- self . contentRuleList = contentRuleList
76
+ onMain {
77
+ WKContentRuleListStore . default ( ) . compileContentRuleList (
78
+ forIdentifier: " ContentBlockingRules " ,
79
+ encodedContentRuleList: self . blockRules
80
+ ) { contentRuleList, error in
81
+ guard error == nil else { return }
82
+ self . contentRuleList = contentRuleList
83
+ }
82
84
}
83
85
}
84
86
You can’t perform that action at this time.
0 commit comments