mirror of
https://github.com/samsonjs/5by5Browser.git
synced 2026-04-27 15:07:39 +00:00
don't reload the home page
This commit is contained in:
parent
e3694bb5b2
commit
f485ed3697
1 changed files with 3 additions and 5 deletions
|
|
@ -126,11 +126,9 @@
|
||||||
{
|
{
|
||||||
// Show the loading animation
|
// Show the loading animation
|
||||||
self.isLoading = YES;
|
self.isLoading = YES;
|
||||||
if (self.episode) {
|
NSURL *url = self.episode ? self.episode.url : [NSURL URLWithString: @"http://5by5.tv"];
|
||||||
[self.webView loadRequest: [NSURLRequest requestWithURL: self.episode.url]];
|
if (![url isEqual: self.webView.request.URL]) {
|
||||||
}
|
[self.webView loadRequest: [NSURLRequest requestWithURL: url]];
|
||||||
else {
|
|
||||||
[self.webView loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: @"http://5by5.tv"]]];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue