www

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

commit 5744161a52673468ce337dbfbd66ffd57a132b0a
parent bb03b80816379de09d0c102fbd0d88f2ca7a1889
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 18 Nov 2013 19:56:08 -0500

Add osfile.jsm import, and remove debugging lines

Diffstat:
Mchrome/content/zotero/xpcom/file.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js @@ -248,9 +248,9 @@ Zotero.File = new function(){ if (typeof data == 'string' && Zotero.platformMajorVersion >= 19 && (!charset || charset.toLowerCase() == 'utf-8')) { - Zotero.debug('Saving contents using OS.File'); let encoder = new TextEncoder(); let array = encoder.encode(data); + Components.utils.import("resource://gre/modules/osfile.jsm"); return Q(OS.File.writeAtomic( file.path, array, @@ -269,7 +269,6 @@ Zotero.File = new function(){ }); } else { - Zotero.debug('Saving contents using asyncCopy'); // Create a stream for async stream copying if(!(data instanceof Components.interfaces.nsIInputStream)) { var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].