Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/common/integrations/GoogleDrive.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class GoogleDriveUtil {
fields : 'files(id, name)',
});
} catch (err) {
if (err?.status === 403) this.logout();
if (err?.status === 401) {
setTimeout(() => {
const picker = document.getElementsByClassName('picker-dialog-content')[0];
Expand Down Expand Up @@ -198,7 +197,6 @@ class GoogleDriveUtil {
}
})
.catch(err => {
if (err.status && err.status === 403) this.logout();
if (err.status && err.status === 401) this.client.requestAccessToken({ prompt: '' });

const error = new TrackJSError(
Expand Down Expand Up @@ -262,7 +260,6 @@ class GoogleDriveUtil {
})
.then(resolve)
.catch(err => {
if (err?.status === 403) this.logout();
if (err?.status === 401) this.client.requestAccessToken({ prompt: '' });

const error = new TrackJSError(
Expand All @@ -275,7 +272,6 @@ class GoogleDriveUtil {
});
})
.catch(error => {
if (error?.status === 403) this.logout();
if (error?.status === 401) this.client.requestAccessToken({ prompt: '' });
});
});
Expand Down Expand Up @@ -307,7 +303,6 @@ class GoogleDriveUtil {
resolve();
return;
}
if (xhr.status === 403) this.logout();
if (xhr.status === 401) this.client.requestAccessToken({ prompt: '' });
const error = new TrackJSError(
'GoogleDrive',
Expand Down