Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
self.process = require('process/browser');
const fsa_to_node_1 = require("../fsa-to-node");
const FsaNodeSyncWorker_1 = require("../../src/fsa-to-node/worker/FsaNodeSyncWorker");
if (typeof window === 'object') {
const url = document.currentScript.src;
const dir = navigator.storage.getDirectory();
const fs = (window.fs = new fsa_to_node_1.FsaNodeFs(dir));
if (url) {
fsa_to_node_1.FsaNodeSyncAdapterWorker.start(url, dir)
.then(adapter => {
fs.syncAdapter = adapter;
})
.catch(() => { });
}
}
else {
const worker = new FsaNodeSyncWorker_1.FsaNodeSyncWorker();
worker.start();
}
//# sourceMappingURL=index.js.map