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

This commit is contained in:
Doug Kearns committed 2009-06-29 19:09:11 +10:00
1 parent d2c1c02c38
commit 701f9ef494
4 files changed
+25 -19

No files matched your search

+12
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