Skip to content

Commit e3f7cdf

Browse files
committed
review fix
1 parent 19351ef commit e3f7cdf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/background.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function getBackupToken(service: string) {
332332
authUrl = `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${
333333
getCredentials().onedrive.client_id
334334
}&response_type=code&redirect_uri=${redirUrl}&scope=https%3A%2F%2Fgraph.microsoft.com%2FFiles.ReadWrite${
335-
localStorage.oneDriveBusiness === "false" ? ".AppFolder" : ""
335+
localStorage.oneDriveBusiness !== "true" ? ".AppFolder" : ""
336336
}%20https%3A%2F%2Fgraph.microsoft.com%2FUser.Read%20offline_access&response_mode=query&prompt=consent`;
337337
}
338338
chrome.identity.launchWebAuthFlow(
@@ -462,7 +462,7 @@ function getBackupToken(service: string) {
462462
`client_id=${
463463
getCredentials().onedrive.client_id
464464
}&grant_type=authorization_code&scope=https%3A%2F%2Fgraph.microsoft.com%2FFiles.ReadWrite${
465-
localStorage.oneDriveBusiness === "false"
465+
localStorage.oneDriveBusiness !== "true"
466466
? ".AppFolder"
467467
: ""
468468
}%20https%3A%2F%2Fgraph.microsoft.com%2FUser.Read%20offline_access&code=${value}&redirect_uri=${redirUrl}&client_secret=${encodeURIComponent(

src/models/backup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ export class OneDrive implements BackupProvider {
539539
}&client_secret=${encodeURIComponent(
540540
getCredentials().onedrive.client_secret
541541
)}&grant_type=refresh_token&scope=https%3A%2F%2Fgraph.microsoft.com%2FFiles.ReadWrite${
542-
localStorage.oneDriveBusiness === "false" ? ".AppFolder" : ""
542+
localStorage.oneDriveBusiness !== "true" ? ".AppFolder" : ""
543543
}%20https%3A%2F%2Fgraph.microsoft.com%2FUser.Read%20offline_access`
544544
);
545545
}

0 commit comments

Comments
 (0)