fix minor bug of onedrive

This commit is contained in:
fyears
2024-01-10 02:49:14 +08:00
parent 7b67ba5b26
commit 7422956621
2 changed files with 66 additions and 50 deletions
+7 -1
View File
@@ -674,10 +674,16 @@ export default class RemotelySavePlugin extends Plugin {
this.settings.onedrive.clientID,
this.settings.onedrive.authority,
inputParams.code,
this.oauth2Info.verifier
this.oauth2Info.verifier,
async (e: any) => {
new Notice(t("protocol_onedrive_connect_fail"));
new Notice(`${e}`);
return; // throw?
}
);
if ((rsp as any).error !== undefined) {
new Notice(`${JSON.stringify(rsp)}`);
throw Error(`${JSON.stringify(rsp)}`);
}