From b28cabe63b606e7d7a74a73b3b26779340a9bff5 Mon Sep 17 00:00:00 2001 From: "stirlingbot[bot]" <195170888+stirlingbot[bot]@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:02:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20format=20everything=20with=20pre?= =?UTF-8?q?-commit=20by=20=20(#3300)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-generated by [create-pull-request][1] with **stirlingbot** [1]: https://github.com/peter-evans/create-pull-request Signed-off-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com> Co-authored-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com> --- src/main/resources/static/js/googleFilePicker.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/static/js/googleFilePicker.js b/src/main/resources/static/js/googleFilePicker.js index 205167885..833cf950b 100644 --- a/src/main/resources/static/js/googleFilePicker.js +++ b/src/main/resources/static/js/googleFilePicker.js @@ -20,7 +20,7 @@ function gisLoaded() { }); } -// add more as needed. +// add more as needed. // Google picker is limited on what mimeTypes are supported // Wild card are not supported const expandableMimeTypes = { @@ -29,10 +29,10 @@ const expandableMimeTypes = { function fileInputToGooglePickerMimeTypes(accept) { - if(accept == null || accept == "" || accept.includes("*/*")){ + if(accept == null || accept == "" || accept.includes("*/*")){ // Setting null will accept all supported mimetypes - return null; + return null; } let mimeTypes = []; @@ -57,7 +57,7 @@ function fileInputToGooglePickerMimeTypes(accept) { */ function gapiLoaded() { gapi.load("client:picker", initializePicker); -} +} /** * Callback after the API client is loaded. Loads the @@ -68,7 +68,7 @@ async function initializePicker() { } function setupGoogleDrivePicker(picker) { - + const name = picker.getAttribute('data-name'); const accept = picker.getAttribute('data-accept'); const multiple = picker.getAttribute('data-multiple') === "true";