1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 06:14:12 +01:00

Move filename calculations from io.createTempFile to config.tempFile.

This commit is contained in:
Doug Kearns
2009-06-29 18:55:41 +10:00
parent d2c1c02c38
commit 701f9ef494
4 changed files with 25 additions and 19 deletions

View File

@@ -141,6 +141,18 @@ const config = { //{{{
"tabs.js"
],
get tempFile() {
let prefix = this.name.toLowerCase();
try
{
prefix += "-" + window.content.document.location.hostname;
}
catch (e) {}
return prefix + ".tmp";
},
init: function ()
{
// TODO: support 'nrformats'? -> probably not worth it --mst