Don't add extra menu separator in Standalone
This commit is contained in:
parent
1e90528937
commit
84486e24ac
1 changed files with 3 additions and 3 deletions
|
@ -82,8 +82,8 @@ const ZoteroStandalone = new function() {
|
|||
while(addMenu.hasChildNodes()) addMenu.removeChild(addMenu.firstChild);
|
||||
|
||||
var typeSets = [Zotero.ItemTypes.getPrimaryTypes(), Zotero.ItemTypes.getSecondaryTypes()];
|
||||
for(var i in typeSets) {
|
||||
var t = typeSets[i];
|
||||
for(var j=0; j<typeSets.length; j++) {
|
||||
var t = typeSets[j];
|
||||
|
||||
// Sort by localized name
|
||||
var itemTypes = [];
|
||||
|
@ -109,7 +109,7 @@ const ZoteroStandalone = new function() {
|
|||
}
|
||||
|
||||
// add separator between sets
|
||||
if(i !== typeSets.length-1) {
|
||||
if(j !== typeSets.length-1) {
|
||||
addMenu.appendChild(document.createElement("menuseparator"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue