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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user