Use DB libraryID for check in Zotero.Libraries.getType()
Before, 'user' wouldn't be returned if the real libraryID was given for the personal library.
This commit is contained in:
parent
7541106641
commit
3c81067961
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ Zotero.Libraries = new function () {
|
|||
|
||||
|
||||
this.getType = function (libraryID) {
|
||||
if (libraryID === 0) {
|
||||
if (this.dbLibraryID(libraryID) === 0) {
|
||||
return 'user';
|
||||
}
|
||||
if (!_libraryData[libraryID]) {
|
||||
|
|
Loading…
Reference in a new issue