small filespec usage tweak to stop mac complaining about non-registered protocols. PDT+ b=22961, r=waterson

This commit is contained in:
ben%netscape.com 2000-02-16 07:21:07 +00:00
Родитель c627c39c2c
Коммит c74ae92af7
1 изменённых файлов: 1 добавлений и 5 удалений

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

@ -6,10 +6,6 @@ function getFileOrFolderURL( aTitle, aFolder )
var fileSpecWithUI = Components.classes["component://netscape/filespecwithui"].createInstance();
if( fileSpecWithUI )
fileSpecWithUI = fileSpecWithUI.QueryInterface( Components.interfaces.nsIFileSpecWithUI );
/*
var fileSpec = Components.classes["component://netscape/filespec"].createInstance();
if( fileSpec )
fileSpec = fileSpec.QueryInterface( Components.interfaces.nsIFileSpec );*/
}
catch(e) {
dump("*** failed to create fileSpecWithUI or fileSpec objects\n");
@ -28,7 +24,7 @@ function getFileOrFolderURL( aTitle, aFolder )
dump("Error: " + e + "\n");
return -1;
}
return fileSpecWithUI.nativePath;
return fileSpecWithUI.URLString;
}
function prefNavSelectFile(folderFieldId, stringId)