Bug 103329: don't show undefined either. r=lumpy,sr=jack

This commit is contained in:
jaggernaut%netscape.com 2003-03-13 00:14:58 +00:00
parent d2024c99d5
commit 524ee4d7bd

View File

@ -544,19 +544,20 @@ function Startup()
// only load url passed in when we're not page cycling
if (!isPageCycling) {
var uriToLoad;
var uriToLoad = "";
// Check for window.arguments[0]. If present, use that for uriToLoad.
if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) {
var uriArray = window.arguments[0].toString().split('\n'); // stringify and split
uriToLoad = uriArray.splice(0, 1)[0];
if (/^\s*$/.test(uriToLoad))
uriToLoad = "about:blank";
if (uriArray.length > 0)
window.setTimeout(function(arg) { for (var i in arg) gBrowser.addTab(arg[i]); }, 0, uriArray);
}
if (/^\s*$/.test(uriToLoad))
uriToLoad = "about:blank";
if (uriToLoad != "about:blank") {
gURLBar.value = uriToLoad;
if ("arguments" in window && window.arguments.length >= 3) {