mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 20:35:46 +01:00
Minor changes.
--HG-- branch : groups
This commit is contained in:
@@ -106,9 +106,13 @@ var Download = Class("Download", {
|
||||
|
||||
let file = io.File(this.targetFile);
|
||||
if (file.isExecutable() && prefs.get("browser.download.manager.alertOnEXEOpen", true))
|
||||
this.list.modules.commandline.input("This will launch an executable download. Continue? (yes/[no]) ",
|
||||
this.list.modules.commandline.input("This will launch an executable download. Continue? (yes/[no]/always) ",
|
||||
function (resp) {
|
||||
if (resp && resp.match(/^y(es)?$/i))
|
||||
if (/^a(lways)$/i.test(resp)) {
|
||||
prefs.set("browser.download.manager.alertOnEXEOpen", false);
|
||||
resp = "yes";
|
||||
}
|
||||
if (/^y(es)?$/i.test(resp))
|
||||
action.call(self);
|
||||
});
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user