From f4b9f77cc9b65ed26c5dda9b8e9bac6583772277 Mon Sep 17 00:00:00 2001 From: "Taylor Wilsdon (aider)" Date: Mon, 16 Dec 2024 13:40:39 -0500 Subject: [PATCH] feat: Add support for Google Slides with text/plain export --- src/lib/utils/google-drive-picker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/google-drive-picker.ts b/src/lib/utils/google-drive-picker.ts index 26eb7f6b1..b19c47cbd 100644 --- a/src/lib/utils/google-drive-picker.ts +++ b/src/lib/utils/google-drive-picker.ts @@ -109,7 +109,7 @@ export const createPicker = () => { .setIncludeFolders(false) .setSelectFolderEnabled(false) .setMimeTypes( - 'application/pdf,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.google-apps.document,application/vnd.google-apps.spreadsheet' + 'application/pdf,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.google-apps.document,application/vnd.google-apps.spreadsheet,application/vnd.google-apps.presentation' ) ) .setOAuthToken(token) @@ -141,6 +141,7 @@ export const createPicker = () => { } else if (mimeType.includes('spreadsheet')) { exportFormat = 'text/csv'; } else if (mimeType.includes('presentation')) { + exportFormat = 'text/plain'; exportFormat = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; } else {