From ef1c96ae037932dc8fe057af5767c0ca87366af2 Mon Sep 17 00:00:00 2001 From: Daniel Bainton Date: Fri, 19 Sep 2008 13:28:04 +0000 Subject: [PATCH] Fix io.createTempFile (now for real) --- content/io.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/io.js b/content/io.js index 7f4fe97f..6d3495fa 100644 --- a/content/io.js +++ b/content/io.js @@ -475,8 +475,11 @@ liberator.IO = function () //{{{ .createInstance(Components.interfaces.nsILocalFile); var tmpname = liberator.config.name.toLowerCase() + "-"; - if (window.content.document.location.hostname) - tmpname += window.content.document.location.hostname; + try { + if (window.content.document.location.hostname) + tmpname += window.content.document.location.hostname; + } + catch (e) {} tmpname += ".tmp"; if (liberator.config.name == "Muttator")