Zotero: use private info for key

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie2459b8002d33a6e9a5c4bc21e129df602fe588b
This commit is contained in:
Szymon Kłos 2023-01-04 14:40:33 +01:00 committed by Andras Timar
parent 9b40d40713
commit a4ebc7fda2

View file

@ -83,9 +83,9 @@ L.Control.Zotero = L.Control.extend({
},
onUpdateViews: function () {
var userExtraInfo = this.map._docLayer ? this.map._viewInfo[this.map._docLayer._viewId].userextrainfo : null;
if (userExtraInfo) {
this.apiKey = userExtraInfo.ZoteroAPIKey;
var userPrivateInfo = this.map._docLayer ? this.map._viewInfo[this.map._docLayer._viewId].userprivateinfo : null;
if (userPrivateInfo) {
this.apiKey = userPrivateInfo.ZoteroAPIKey;
if (this.apiKey)
this.updateUserID();
}