This commit is contained in:
vidur%netscape.com 1998-08-13 04:48:57 +00:00
Родитель 1b8f8755bf
Коммит c07c4a5ef1
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -496,16 +496,10 @@ LocationImpl::SetSearch(const nsString& aSearch)
NS_IMETHODIMP
LocationImpl::Reload(JSContext *cx, jsval *argv, PRUint32 argc)
{
nsAutoString url;
PRInt32 index;
nsresult result = NS_OK;
if (nsnull != mWebShell) {
mWebShell->GetHistoryIndex(index);
result = mWebShell->GetURL(index, url);
if (NS_OK == result) {
result = mWebShell->LoadURL(url, nsnull, PR_FALSE);
}
result = mWebShell->Reload();
}
return result;