Explorar o código

fixed acess token undefined (Chrome)

Former-commit-id: 30e7dad847d9e1e2bafb31ae6bfa49349ae01fdf
Gildas %!s(int64=6) %!d(string=hai) anos
pai
achega
394c830365
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      extension/core/bg/downloads.js

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

@@ -145,7 +145,7 @@ singlefile.extension.core.bg.downloads = (() => {
 			promptAuthCode: () => singlefile.extension.core.bg.tabs.promptValue("Please enter the access code for Google Drive")
 		};
 		gDrive.setAuthInfo(authInfo, options);
-		if (!authInfo || force) {
+		if (!authInfo || !authInfo.accessToken || force) {
 			authInfo = await gDrive.auth(options);
 			if (authInfo) {
 				await singlefile.extension.core.bg.config.setAuthInfo(authInfo);