()
| 33 | if (options.hint) how.startIn = options.hint; |
| 34 | |
| 35 | const transient = async () => { |
| 36 | try { |
| 37 | const handler = await showDirectoryPicker(how); |
| 38 | if ((await handler.requestPermission(how)) === "granted") { |
| 39 | resolve(handler); |
| 40 | return true; |
| 41 | } |
| 42 | } catch ({ message }) { |
| 43 | console.warn(message); |
| 44 | } |
| 45 | return false; |
| 46 | }; |
| 47 | |
| 48 | // in case the user decided to attach the event itself |
| 49 | // as opposite of relying our dialog walkthrough |
no test coverage detected