Zotero: use private info for key
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Ie2459b8002d33a6e9a5c4bc21e129df602fe588b
This commit is contained in:
parent
9b40d40713
commit
a4ebc7fda2
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue