Skip to content
Snippets Groups Projects
Commit 4a18c2c6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use Archive.suopported_formats, if defined, instead of hard-coded list of file types

Remove an apparent nnecessary reset of console.aborted flag
parent c2e49c12
No related branches found
No related tags found
No related merge requests found
......@@ -245,7 +245,7 @@ while(bbs.online && !js.terminated) {
switch(console.getkeys(keys, K_UPPER)) {
case 'A':
var defaultext = 0;
var archivetypes = [ "zip", "7z", "tgz" ];
var archivetypes = Archive.supported_formats || [ "zip", "7z", "tgz" ];
for (var code in file_cfg.compressor) {
if (thisuser.compare_ars(file_cfg.compressor[code].ars)
&& archivetypes.indexOf(file_cfg.compressor[code].extension) === -1)
......@@ -261,8 +261,6 @@ while(bbs.online && !js.terminated) {
}
if ((i=console.uselect(defaultext))>=0)
thisuser.temp_file_ext = archivetypes[i];
if (console.aborted)
console.aborted = false;
break;
case 'B':
thisuser.settings ^= USER_BATCHFLAG;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment