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:
@@ -191,14 +191,9 @@ liberator.IO = function () //{{{
|
||||
// TODO: "E172: Only one file name allowed"
|
||||
var filename;
|
||||
if (args)
|
||||
{
|
||||
filename = args;
|
||||
}
|
||||
else
|
||||
{
|
||||
filename = (navigator.platform == "Win32") ? "~/_" : "~/.";
|
||||
filename += extname + "rc";
|
||||
}
|
||||
filename = "~/" + (WINDOWS ? "_" : ".") + extname + "rc";
|
||||
|
||||
var file = liberator.io.getFile(filename);
|
||||
if (file.exists() && !special)
|
||||
|
||||
Reference in New Issue
Block a user