mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-19 10:42:30 +02:00
Move filename calculations from io.createTempFile to config.tempFile.
This commit is contained in:
1 parent
d2c1c02c38
commit
701f9ef494
4 files changed
+25
-19
No files matched your search
@@ -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