🤖 format everything with pre-commit by <stirlingbot> (#3300)

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>
This commit is contained in:
stirlingbot[bot] 2025-04-09 11:02:42 +01:00 committed by GitHub
parent 1de1f43762
commit b28cabe63b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";