forked from matrix/element-web
Latest updates; set process stuff to make prometheus happy
This commit is contained in:
parent
0935ccd737
commit
4d1f969c4d
|
@ -26,6 +26,17 @@ self.addEventListener('install', function(event) {
|
||||||
|
|
||||||
self.addEventListener('activate', function(event) {
|
self.addEventListener('activate', function(event) {
|
||||||
console.log("SW activated")
|
console.log("SW activated")
|
||||||
|
global.process = {
|
||||||
|
pid: 1,
|
||||||
|
env: {
|
||||||
|
DEBUG: "*",
|
||||||
|
}
|
||||||
|
};
|
||||||
|
global.fs.stat = function(path, cb) {
|
||||||
|
cb({
|
||||||
|
code: "EINVAL",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
locateFile: filename => `${bundle_path}/../../sql-wasm.wasm`
|
locateFile: filename => `${bundle_path}/../../sql-wasm.wasm`
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue