1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 22:05:54 +01:00

Adding a check for hostname

This commit is contained in:
Daniel Bainton
2008-09-18 11:48:35 +00:00
parent 597468f179
commit 65f1b0d53f

View File

@@ -474,8 +474,9 @@ liberator.IO = function () //{{{
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
var tmpname = liberator.config.name.toLowerCase() + "-" +
window.content.document.location.hostname + ".tmp";
if (window.content.document.location.hostname)
var tmpname = liberator.config.name.toLowerCase() + "-" +
window.content.document.location.hostname + ".tmp";
if (liberator.config.name == "Muttator")
tmpname = "mutt-ator-mail"; // to allow vim to :set ft=mail automatically