From 3403c4f9a1a36a280f55c116641c0bb455772634 Mon Sep 17 00:00:00 2001 From: "stirlingbot[bot]" <195170888+stirlingbot[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 00:15:15 +0000 Subject: [PATCH] :file_folder: pre-commit Signed-off-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";