Skip to content

Commit 2f3442b

Browse files
committed
using setPlayerTags function instead of setting variable directly
1 parent a411980 commit 2f3442b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

iOS_SDK/OneSignalSDK/Source/OSInAppMessageView.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,14 @@ - (NSString *)addTagsToHTML:(NSString *)html {
8181
//Script to set the tags for liquid tag substitution
8282
NSString *newHtml = [NSString stringWithFormat:@"%@ \n\n\
8383
<script> \
84-
liquidPlayerTags = %@; \
84+
setPlayerTags(%@);\
8585
</script>",html, tags];
8686
return newHtml;
8787
}
8888

8989
- (void)loadedHtmlContent:(NSString *)html withBaseURL:(NSURL *)url {
9090
// UI Update must be done on the main thread
9191
NSLog(@"11111 [self.webView loadHTMLString:html baseURL:url];");
92-
9392
dispatch_sync(dispatch_get_main_queue(), ^{
9493
NSLog(@"222222 [self.webView loadHTMLString:html baseURL:url];");
9594
NSString *taggedHTML = [self addTagsToHTML:html];

0 commit comments

Comments
 (0)