textbrowser 0.45.1 → 0.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +4 -0
- package/package.json +1 -1
- package/server/main.js +5 -0
package/CHANGES.md
CHANGED
package/package.json
CHANGED
package/server/main.js
CHANGED
|
@@ -153,6 +153,11 @@ const srv = http.createServer(async (req, res) => {
|
|
|
153
153
|
return regexp.source !== '^\\/?(?=\\/|$)' && regexp.test(req.url);
|
|
154
154
|
}))) {
|
|
155
155
|
await runHttpServer();
|
|
156
|
+
|
|
157
|
+
// Ideally we could use `next` here to serve as a back-up static
|
|
158
|
+
// server (i.e., for the bahaiwritings app proper), but the indexes
|
|
159
|
+
// app apparently tries to use it (and fails) after a single
|
|
160
|
+
// successful HTML page load. So we let the Express app handle
|
|
156
161
|
app(req, res, () => {
|
|
157
162
|
// Empty
|
|
158
163
|
});
|