1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:07:59 +01:00

Closes issue #1280.

This commit is contained in:
Kris Maglione
2015-03-02 17:10:59 -08:00
parent 17300e6748
commit c84c657d27
2 changed files with 10 additions and 3 deletions

View File

@@ -838,8 +838,14 @@ var Buffer = Module("Buffer", {
else else
persist.progressListener = downloadListener; persist.progressListener = downloadListener;
persist.saveURI(params.uri, null, null, null, null, if (persist.saveURI.length <= 7)
file.file, privacy); persist.saveURI(params.uri, null, null, null, null,
file.file, privacy);
else
// Let's add an extra null to the middle of the arguments
// list, because why not.
persist.saveURI(params.uri, null, null, null, null, null,
file.file, privacy);
}, },
/** /**

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2008-2014 Kris Maglione <maglione.k at Gmail> // Copyright (c) 2008-2015 Kris Maglione <maglione.k at Gmail>
// //
// This work is licensed for reuse under an MIT license. Details are // This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file. // given in the LICENSE.txt file included with this file.
@@ -684,6 +684,7 @@ var JavaScript = Module("javascript", {
return []; return [];
return completer.call(obj, context, obj, args); return completer.call(obj, context, obj, args);
}; };
func.dactylCompleter.completers = completers;
} }
return arguments[0]; return arguments[0];
} }