mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-27 19:23:35 +02:00
Adding a check for hostname
This commit is contained in:
@@ -474,6 +474,7 @@ 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);
|
||||||
|
|
||||||
|
if (window.content.document.location.hostname)
|
||||||
var tmpname = liberator.config.name.toLowerCase() + "-" +
|
var tmpname = liberator.config.name.toLowerCase() + "-" +
|
||||||
window.content.document.location.hostname + ".tmp";
|
window.content.document.location.hostname + ".tmp";
|
||||||
if (liberator.config.name == "Muttator")
|
if (liberator.config.name == "Muttator")
|
||||||
|
|||||||
Reference in New Issue
Block a user