Skip to content

Commit

Permalink
Remove prompt when adding style manually
Browse files Browse the repository at this point in the history
(And prompt was showing "(null)")
  • Loading branch information
dstillman committed Jul 28, 2017
1 parent 34b99fb commit 884d03b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chrome/content/zotero/preferences/preferences_cite.js
Expand Up @@ -117,7 +117,11 @@ Zotero_Preferences.Cite = {

var rv = fp.show();
if (rv == nsIFilePicker.returnOK || rv == nsIFilePicker.returnReplace) {
Zotero.Styles.install(fp.file);
Zotero.Styles.install({ file: fp.file }, fp.file.path, true)
.catch(function (e) {
(new Zotero.Exception.Alert("styles.install.unexpectedError",
fp.file.path, "styles.install.title", e)).present()
});
}
},

Expand Down

0 comments on commit 884d03b

Please sign in to comment.