Skip to content

Commit eb7a6f8

Browse files
author
Alexis Oyama
committed
fix(MessageTemplate): Fix web view not stopping js when closing
1 parent 0440382 commit eb7a6f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Leanplum-SDK/Classes/LPMessageTemplates.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,10 @@ - (void)closePopupWithAnimation:(BOOL)animated
741741
finishCallback();
742742
}
743743

744-
if ([[context actionName] isEqualToString:LPMT_WEB_INTERSTITIAL_NAME]) {
744+
if ([[context actionName] isEqualToString:LPMT_WEB_INTERSTITIAL_NAME] ||
745+
[[context actionName] isEqualToString:LPMT_HTML_NAME] ) {
745746
((UIWebView *)_popupView).delegate = nil;
747+
[(UIWebView *)_popupView stopLoading];
746748
}
747749

748750
_popupView = nil;

0 commit comments

Comments
 (0)