1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 10:47:58 +01:00

Fix temporary file filename extensions and host annotation.

Fixes issue #791.
This commit is contained in:
Doug Kearns
2013-09-05 20:55:01 +10:00
parent 4055392b49
commit 98af2b9ab0
5 changed files with 15 additions and 37 deletions

View File

@@ -470,7 +470,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
}
try {
var tmpfile = io.createTempFile();
var tmpfile = io.createTempFile("txt", "." + buffer.uri.host);
if (!tmpfile)
throw Error(_("io.cantCreateTempFile"));