Add Zotero.Libraries.userLibrary
This commit is contained in:
parent
691819bd32
commit
b976c84a29
|
@ -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;
|
let _publicationsLibraryID;
|
||||||
Zotero.defineProperty(this, 'publicationsLibraryID', {
|
Zotero.defineProperty(this, 'publicationsLibraryID', {
|
||||||
get: function() {
|
get: function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user