Latest updates; set process stuff to make prometheus happy

This commit is contained in:
Kegan Dougal 2020-03-10 14:28:12 +00:00
parent 0935ccd737
commit 4d1f969c4d
2 changed files with 11 additions and 0 deletions

View File

@ -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`

Binary file not shown.