File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 } ${ 
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 } ${ redirUrl } ${ encodeURIComponent ( 
Original file line number Diff line number Diff 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      } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments