Browse Source

fix: weird buy introduced by bumping shadow-cljs

Tienson Qin 5 years ago
parent
commit
c611a7a8e1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/utils.js

+ 3 - 1
src/main/frontend/utils.js

@@ -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)];