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:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user