瀏覽代碼

fixed token reset

Former-commit-id: 42d86e6c63ee6fe4dab741871d38bf286693865d
Gildas 6 年之前
父節點
當前提交
da08030893
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      extension/core/bg/downloads.js

+ 1 - 1
extension/core/bg/downloads.js

@@ -118,8 +118,8 @@ singlefile.extension.core.bg.downloads = (() => {
 		}
 		if (message.method.endsWith(".disableGDrive")) {
 			const authInfo = await singlefile.extension.core.bg.config.getAuthInfo();
+			singlefile.extension.core.bg.config.setAuthInfo(null);
 			await gDrive.revokeAuthToken(authInfo.accessToken);
-			singlefile.extension.core.bg.config.setAuthInfo({});
 			return {};
 		}
 		if (message.method.endsWith(".end")) {