1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:27:58 +01:00

return a file object from io.getCurrentDirectory

This commit is contained in:
Doug Kearns
2008-11-01 02:53:25 +00:00
parent 14a646e2ce
commit 4efae05d03
3 changed files with 16 additions and 16 deletions

View File

@@ -551,7 +551,7 @@ function Buffer() //{{{
// if browser.download.useDownloadDir = false then the "Save As"
// dialog is used with this as the default directory
// TODO: if we're going to do this shouldn't it be done in setCWD or the value restored?
options.setPref("browser.download.lastDir", io.getCurrentDirectory());
options.setPref("browser.download.lastDir", io.getCurrentDirectory().path);
try
{
@@ -1110,7 +1110,7 @@ function Buffer() //{{{
{
urlSecurityCheck(url, doc.nodePrincipal);
// we always want to save that link relative to the current working directory
options.setPref("browser.download.lastDir", io.getCurrentDirectory());
options.setPref("browser.download.lastDir", io.getCurrentDirectory().path);
saveURL(url, text, null, true, skipPrompt, makeURI(url, doc.characterSet));
}
catch (e)