mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
init plugin after log in
This commit is contained in:
@ -377,7 +377,7 @@
|
||||
if (apikey) {
|
||||
sdk.setApiKey(apikey)
|
||||
.then(function () {
|
||||
ZoteroApiChecker.stopApisChecker();
|
||||
ZoteroApiChecker.successfullyLoggedInUsingApiKey();
|
||||
switchAuthState("main");
|
||||
})
|
||||
.catch(function (err) {
|
||||
|
||||
@ -67,8 +67,15 @@ var ZoteroApiChecker = {
|
||||
checkStatus: function (sdk) {
|
||||
return this._checkApiAvailable(sdk);
|
||||
},
|
||||
stopApisChecker: function () {
|
||||
successfullyLoggedInUsingApiKey: function () {
|
||||
this._done = true;
|
||||
this._callback({
|
||||
online: true,
|
||||
hasKey: true,
|
||||
desktop: this._desktop,
|
||||
hasPermission: this._hasPermission,
|
||||
desktopVersion: this._desktopVersion,
|
||||
});
|
||||
},
|
||||
|
||||
_checkApiAvailable: function (sdk) {
|
||||
|
||||
Reference in New Issue
Block a user