Skip to content
Snippets Groups Projects
Commit 4b9a563f authored by eri451's avatar eri451
Browse files

fixed ugly line 75

parent f44bbb7f
Branches master
No related tags found
No related merge requests found
......@@ -72,7 +72,10 @@ group.commands.add(['sessions[ave]','mkses[sion]'],
'Save current window',
function(args) {
let filename = args[0] ? (/^~?\//.test(args[0]) ? args[0] :
options.sessiondir+args[0]) : options.sessiondir+File(services.directory.get("ProfD", Ci.nsIFile)).leafName+'/'+new Date().toLocaleString().replace(/\s/g,"_")+'.penta'
options.sessiondir+args[0]) :
options.sessiondir + File(
services.directory.get("ProfD", Ci.nsIFile)).leafName
+'/'+ new Date().toLocaleString().replace(/\s/g,"_")+'.penta'
let file = io.File(filename);
dactyl.assert(!file.exists() || args.bang, _("io.exists", file.path.quote()));
......
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