We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f8b74 commit edb6177Copy full SHA for edb6177
Leanplum-SDK/Classes/LPMessageTemplates.m
@@ -821,7 +821,9 @@ - (void)accept
821
822
- (void)dismiss
823
{
824
+ LP_TRY
825
[self closePopupWithAnimation:YES];
826
+ LP_END_TRY
827
}
828
829
- (void)enablePush
@@ -1437,7 +1439,10 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
1437
1439
return;
1438
1440
1441
- @catch (NSException *exception) {
1442
+ @catch (id exception) {
1443
+ // In case we catch exception here, hide the overlaying message.
1444
+ [self dismiss];
1445
+ // Handle the exception message.
1446
LOG_LP_MESSAGE_EXCEPTION;
1447
1448
decisionHandler(WKNavigationActionPolicyAllow);
0 commit comments