1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:32:25 +01:00

minor refactoring of :mkv's filename generation

This commit is contained in:
Doug Kearns
2008-09-22 11:22:32 +00:00
parent 5d962a5231
commit 8a39fbcb46

View File

@@ -191,14 +191,9 @@ liberator.IO = function () //{{{
// TODO: "E172: Only one file name allowed" // TODO: "E172: Only one file name allowed"
var filename; var filename;
if (args) if (args)
{
filename = args; filename = args;
}
else else
{ filename = "~/" + (WINDOWS ? "_" : ".") + extname + "rc";
filename = (navigator.platform == "Win32") ? "~/_" : "~/.";
filename += extname + "rc";
}
var file = liberator.io.getFile(filename); var file = liberator.io.getFile(filename);
if (file.exists() && !special) if (file.exists() && !special)