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 aa4975c commit 4b4d5b1Copy full SHA for 4b4d5b1
Leanplum-SDK/Classes/MessageTemplates/ViewControllers/LPWebInterstitialViewController.m
@@ -134,12 +134,23 @@ - (void)loadTemplate
134
NSString *path = [LPFileManager documentsPath];
135
NSURL* baseURL = [NSURL fileURLWithPath:path isDirectory:YES];
136
137
+ if (htmlURL == nil || baseURL == nil) {
138
+ [self dismiss:NO];
139
+ return;
140
+ }
141
+
142
[self.webView loadFileURL:htmlURL allowingReadAccessToURL:baseURL];
143
}
144
145
- (void)loadURL
146
{
147
NSString *url = [self.context stringNamed:LPMT_ARG_URL];
148
149
+ if (url == nil) {
150
151
152
153
154
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
155
[self.webView loadRequest:request];
156
0 commit comments