fixed problem where mentions don't load
This commit is contained in:
parent
0984de779d
commit
a2d456b168
1 changed files with 3 additions and 1 deletions
|
@ -35,13 +35,15 @@
|
||||||
|
|
||||||
- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
|
- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
|
||||||
NSString *action = @"home_timeline";
|
NSString *action = @"home_timeline";
|
||||||
|
NSString *delay = @"1";
|
||||||
|
|
||||||
if (sender == mentionsView) {
|
if (sender == mentionsView) {
|
||||||
action = @"mentions";
|
action = @"mentions";
|
||||||
|
delay = @"1000";
|
||||||
}
|
}
|
||||||
|
|
||||||
[sender stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:
|
[sender stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:
|
||||||
@"setTimeout(function(){ twittia_instance = new Twittia('%@'); }, 1);", action]];
|
@"setTimeout(function(){ twittia_instance = new Twittia('%@'); }, %@);", action, delay]];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Reference in a new issue