diff options
author | Rory MacQueen <rorymacqueen@gmail.com> | 2013-08-06 11:55:48 -0700 |
---|---|---|
committer | Rory MacQueen <rorymacqueen@gmail.com> | 2013-08-06 11:55:48 -0700 |
commit | 488b86de7181949d45c686fa1846dfcd77ccfff9 (patch) | |
tree | 14fcde3ec11b02cd19f5dcd7d6d21638e6bb9021 /wikipedia/utils.js | |
parent | 06d20234429a15197ffd673bc4f75b92fb33f969 (diff) |
Fix for loading temp files that are HTML
Diffstat (limited to 'wikipedia/utils.js')
-rw-r--r-- | wikipedia/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wikipedia/utils.js b/wikipedia/utils.js index 234efcd..404f412 100644 --- a/wikipedia/utils.js +++ b/wikipedia/utils.js @@ -60,7 +60,7 @@ function write_contents_to_file(filename, content){ } function write_contents_to_temp_file(name, content){ - let file = Gio.file_new_tmp(name + "XXXXXX")[0]; + let file = Gio.file_new_tmp("XXXXXX" + name)[0]; file.replace_contents(content, null, false, 0, null); return file.get_uri(); } |