mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
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…
Add table
Reference in a new issue