Просмотр исходного кода

fixed acess token undefined (Chrome)

Former-commit-id: 30e7dad847d9e1e2bafb31ae6bfa49349ae01fdf
Gildas 6 лет назад
Родитель
Сommit
394c830365
1 измененных файлов с 1 добавлено и 1 удалено
  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);