Skip to content

Commit

Permalink
Use temp directory for recognizePDFCache.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jan 31, 2018
1 parent 31f0f0d commit b7a24a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/zotero/recognizePDF.js
Expand Up @@ -136,7 +136,7 @@ var Zotero_RecognizePDF = new function() {
* @return {Promise}
*/
function _extractText(file, pages) {
var cacheFile = Zotero.File.pathToFile(Zotero.DataDirectory.dir);
var cacheFile = Zotero.getTempDirectory();
cacheFile.append("recognizePDFcache.txt");
if(cacheFile.exists()) {
cacheFile.remove(false);
Expand Down

0 comments on commit b7a24a5

Please sign in to comment.