mirror of
https://github.com/samsonjs/5by5Browser.git
synced 2026-03-25 09:05:50 +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
|
||||
self.isLoading = YES;
|
||||
if (self.episode) {
|
||||
[self.webView loadRequest: [NSURLRequest requestWithURL: self.episode.url]];
|
||||
}
|
||||
else {
|
||||
[self.webView loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: @"http://5by5.tv"]]];
|
||||
NSURL *url = self.episode ? self.episode.url : [NSURL URLWithString: @"http://5by5.tv"];
|
||||
if (![url isEqual: self.webView.request.URL]) {
|
||||
[self.webView loadRequest: [NSURLRequest requestWithURL: url]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue