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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user