From dc688a876fdf4cf224f6040c3fac71d293fff66e Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Thu, 2 Aug 2018 17:56:57 +0200 Subject: [PATCH] Keep returning nsIFile from old directory getters --- chrome/content/zotero/xpcom/zotero.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index c96bba8c53..447f68409b 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -975,19 +975,19 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); } function getStorageDirectory() { - return Zotero.DataDirectory.getSubdirectory('storage', true); + return Zotero.File.pathToFile(Zotero.DataDirectory.getSubdirectory('storage', true)); } this.getStylesDirectory = function () { - return Zotero.DataDirectory.getSubdirectory('styles', true); + return Zotero.File.pathToFile(Zotero.DataDirectory.getSubdirectory('styles', true)); } this.getTranslatorsDirectory = function () { - return Zotero.DataDirectory.getSubdirectory('translators', true); + return Zotero.File.pathToFile(Zotero.DataDirectory.getSubdirectory('translators', true)); } this.getTempDirectory = function () { - return Zotero.DataDirectory.getSubdirectory('tmp', true); + return Zotero.File.pathToFile(Zotero.DataDirectory.getSubdirectory('tmp', true)); } this.removeTempDirectory = function () {