1
0
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:
Daniel Bainton
2008-09-19 11:19:32 +00:00
parent 8d547de417
commit 97f9fa4132

View File

@@ -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