www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9765d06d1dcd67107acb391c59a13da40ccf6a76
parent 7c6a9bba9f511fab4c9cc2816d92c083e68bad8e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  3 Feb 2016 12:30:24 -0500

Use "new" with File constructor, which now requires it

Diffstat:
Mchrome/content/zotero/xpcom/storage/webdav.js | 2+-
Mchrome/content/zotero/xpcom/storage/zfs.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js @@ -526,7 +526,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = { var file = Zotero.getTempDirectory(); file.append(item.key + '.zip'); Components.utils.importGlobalProperties(["File"]); - file = File(file); + file = new File(file); var uri = this._getItemURI(item); diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js @@ -618,7 +618,7 @@ Zotero.Sync.Storage.Mode.ZFS.prototype = { var file = yield this._getUploadFile(item); Components.utils.importGlobalProperties(["File"]); - file = File(file); + file = new File(file); var blob = new Blob([params.prefix, file, params.suffix]);