I'm working on Chrome extension. Inside popup I can run window.showDirectoryPicker()
, which returns object of type FileSystemDirectoryHandle
.
My problem is that after changing tab in browser popup is automatically closed, so object is destroyed.
My question is: is there any way to pass this object to any other context (for example to ServiceWorker or other window)?
Or if it is not possible, is there any way for invoking window.showDirectoryPicker() inside extension's ServiceWorker?