fix: weird buy introduced by bumping shadow-cljs

This commit is contained in:
Tienson Qin
2021-01-04 18:36:23 +08:00
parent 952d805e7a
commit c611a7a8e1

View File

@@ -129,7 +129,9 @@ export var verifyPermission = async function (handle, readWrite) {
}
export var openDirectory = async function (options = {}, cb) {
options.recursive = options.recursive || false;
// FIXME: options.recursive will be undefined after the `getFiles` call get resolved
// It's caused by bumping shadow-cljs to 2.11.11.
options.recursive = true;
const handle = await window.showDirectoryPicker({ mode: 'readwrite' });
const _ask = await verifyPermission(handle, true);
return [handle, getFiles(handle, options.recursive, cb)];