From dcade45f82fcb58e234e8bb304f641e2a7a95636 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 19 Nov 2024 16:00:49 +0000 Subject: [PATCH] finetuned httpfs.js --- com/isoterminal/feat/httpfs.js | 2 ++ com/selfcontainer.js | 1 + 2 files changed, 3 insertions(+) diff --git a/com/isoterminal/feat/httpfs.js b/com/isoterminal/feat/httpfs.js index 5455c48..3557937 100644 --- a/com/isoterminal/feat/httpfs.js +++ b/com/isoterminal/feat/httpfs.js @@ -21,7 +21,9 @@ if( typeof emulator != 'undefined' ){ response.status = 404 callback(response) }) + return } + callback() }) }) diff --git a/com/selfcontainer.js b/com/selfcontainer.js index 5584c7a..322cc4f 100644 --- a/com/selfcontainer.js +++ b/com/selfcontainer.js @@ -34,6 +34,7 @@ AFRAME.registerComponent('selfcontainer', { installProxyServer: function(){ if( !window.store ) window.store = {} + // selfcontain every webrequest to store (and serve if stored) let curry = function(me){ return function(request, response, cb){