Remove prompt when adding style manually

(And prompt was showing "(null)")
This commit is contained in:
Dan Stillman 2017-07-28 18:45:37 -04:00
parent 34b99fb71c
commit 884d03b12a

View file

@ -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()
});
}
},