mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-18 11:23:34 +02:00
Adding a check for hostname
This commit is contained in:
@@ -474,8 +474,9 @@ 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)
|
||||||
window.content.document.location.hostname + ".tmp";
|
var tmpname = liberator.config.name.toLowerCase() + "-" +
|
||||||
|
window.content.document.location.hostname + ".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