1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 16:52:25 +01:00

Fix io.createTempFile (now for real)

This commit is contained in:
Daniel Bainton
2008-09-19 13:28:04 +00:00
parent 97f9fa4132
commit ef1c96ae03

View File

@@ -475,8 +475,11 @@ liberator.IO = function () //{{{
.createInstance(Components.interfaces.nsILocalFile); .createInstance(Components.interfaces.nsILocalFile);
var tmpname = liberator.config.name.toLowerCase() + "-"; var tmpname = liberator.config.name.toLowerCase() + "-";
try {
if (window.content.document.location.hostname) if (window.content.document.location.hostname)
tmpname += window.content.document.location.hostname; tmpname += window.content.document.location.hostname;
}
catch (e) {}
tmpname += ".tmp"; tmpname += ".tmp";
if (liberator.config.name == "Muttator") if (liberator.config.name == "Muttator")