mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 19:12:26 +01:00
Fix io.createTempFile
This commit is contained in:
@@ -474,9 +474,11 @@ liberator.IO = function () //{{{
|
|||||||
var file = Components.classes["@mozilla.org/file/local;1"]
|
var file = Components.classes["@mozilla.org/file/local;1"]
|
||||||
.createInstance(Components.interfaces.nsILocalFile);
|
.createInstance(Components.interfaces.nsILocalFile);
|
||||||
|
|
||||||
|
var tmpname = liberator.config.name.toLowerCase() + "-";
|
||||||
if (window.content.document.location.hostname)
|
if (window.content.document.location.hostname)
|
||||||
var tmpname = liberator.config.name.toLowerCase() + "-" +
|
tmpname += window.content.document.location.hostname;
|
||||||
window.content.document.location.hostname + ".tmp";
|
tmpname += ".tmp";
|
||||||
|
|
||||||
if (liberator.config.name == "Muttator")
|
if (liberator.config.name == "Muttator")
|
||||||
tmpname = "mutt-ator-mail"; // to allow vim to :set ft=mail automatically
|
tmpname = "mutt-ator-mail"; // to allow vim to :set ft=mail automatically
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user