diff --git a/src/vector/dendrite-sw.js b/src/vector/dendrite-sw.js index 8b07d104..1d4d0b5b 100644 --- a/src/vector/dendrite-sw.js +++ b/src/vector/dendrite-sw.js @@ -26,6 +26,17 @@ self.addEventListener('install', function(event) { self.addEventListener('activate', function(event) { console.log("SW activated") + global.process = { + pid: 1, + env: { + DEBUG: "*", + } + }; + global.fs.stat = function(path, cb) { + cb({ + code: "EINVAL", + }); + } const config = { locateFile: filename => `${bundle_path}/../../sql-wasm.wasm` diff --git a/src/vector/dendrite.wasm b/src/vector/dendrite.wasm index 10ebcb4f..a1c908f9 100755 Binary files a/src/vector/dendrite.wasm and b/src/vector/dendrite.wasm differ