Add Zotero.Libraries.userLibrary
This commit is contained in:
parent
691819bd32
commit
b976c84a29
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@ Zotero.Libraries = new function () {
|
|||
}
|
||||
});
|
||||
|
||||
let _userLibrary;
|
||||
Zotero.defineProperty(this, 'userLibrary', {
|
||||
get: function () {
|
||||
return _userLibrary || (_userLibrary = Zotero.Libraries.get(this.userLibraryID));
|
||||
}
|
||||
})
|
||||
|
||||
let _publicationsLibraryID;
|
||||
Zotero.defineProperty(this, 'publicationsLibraryID', {
|
||||
get: function() {
|
||||
|
|
Loading…
Reference in a new issue