mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 02:28:00 +01:00
Add an experimental prototype download manager replacement. Fix some bugs.
--HG-- extra : rebase_source : aea703414d4bd601bfdea779c5878a30d5b3d782
This commit is contained in:
@@ -786,6 +786,10 @@ var Buffer = Module("buffer", {
|
||||
var persist = services.Persist();
|
||||
persist.persistFlags = persist.PERSIST_FLAGS_FROM_CACHE
|
||||
| persist.PERSIST_FLAGS_REPLACE_EXISTING_FILES;
|
||||
|
||||
persist.progressListener = new window.DownloadListener(window,
|
||||
services.Transfer(uri, services.io.newFileURI(file), "",
|
||||
null, null, null, persist));
|
||||
persist.saveURI(uri, null, null, null, null, file);
|
||||
}, {
|
||||
autocomplete: true,
|
||||
|
||||
Reference in New Issue
Block a user