diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 10ad1b3648..a8c3ab24f2 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -187,9 +187,9 @@ Zotero.Styles = new function() { var styleInstalled; if(style instanceof Components.interfaces.nsIFile) { // handle nsIFiles - origin = style.leafName; - styleInstalled = Zotero.File.getContentsAsync(style).when(function(style) { - return _install(style, origin); + var url = Services.io.newFileURI(style); + styleInstalled = Zotero.HTTP.promise("GET", url.spec).when(function(xmlhttp) { + return _install(xmlhttp.responseText, style.leafName); }); } else { styleInstalled = _install(style, origin);