Remove prompt when adding style manually
(And prompt was showing "(null)")
This commit is contained in:
parent
34b99fb71c
commit
884d03b12a
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue