mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
refactor(db-worker,wip): remove asset related <invoke-main-thread (2)
This commit is contained in:
@@ -20,6 +20,11 @@ const createFS = () => new LightningFS(fsName);
|
||||
let fs = createFS();
|
||||
let pfs = fs.promises;
|
||||
|
||||
if (typeof self !== 'undefined') {
|
||||
self.fs = fs;
|
||||
self.pfs = pfs;
|
||||
}
|
||||
|
||||
if (detect() === 'Worker') {
|
||||
const portal = new MagicPortal(self);
|
||||
portal.set('fs', fs);
|
||||
|
||||
Reference in New Issue
Block a user