Skip to content

Commit

Permalink
fix(GoogleDrive): Fix permissions.contains syntax
Browse files Browse the repository at this point in the history
fixes #1458

thanks to @shivindera

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Dec 10, 2023
1 parent 93202b2 commit 5851195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/adapters/GoogleDrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class GoogleDriveAdapter extends CachingAdapter {

if (platform === 'web') {
const browser = (await import('../browser-api')).default
const origins = ['https://oauth2.googleapis.com', 'https://www.googleapis.com']
const origins = ['https://oauth2.googleapis.com/', 'https://www.googleapis.com/']
if (!(await browser.permissions.contains({ origins }))) {
throw new MissingPermissionsError()
}
Expand Down

0 comments on commit 5851195

Please sign in to comment.