Commit graph

12 commits

Author SHA1 Message Date
CountBleck
353fc106b4
Fix Cyclone loading
How did this get messed up in the first place?
2022-10-08 17:50:38 -07:00
CountBleck
1fb7d3c6fc
Switch Cyclone's prefix from /service to /service/next
If a user navigates to a UV link directly, without the service worker
registered, Cyclone's bare server will take over and interpret the URL
as http://go/..., which you definitely didn't want, unless you happen
to work at Google :P
2022-09-13 17:51:37 -07:00
CountBleck
4ff19c9fa5 Improve error handling in some cases
In Cyclone's fetchBare(), the content type wasn't correct, and the
status line should be "Internal Server Error", not just "Error". In
the main request handler, I added similar error handling, just in case.
2022-08-30 15:24:48 -07:00
CountBleck
4ec92aec50 Remove redundant try block in Cyclone's fetch
The error handling in the catch block led to a bug where the request's
body was piped to Cyclone's response. However, since the mock request in
the catch block doesn't have a body property, let alone a pipe method,
that line throws an error.
2022-08-30 10:35:54 -07:00
CountBleck
1e932d9518
Fix headers in Cyclone custom bare
Referer is misspelled incorrectly. Also, the Cookie header name was
incorrect, and `req.cookies` does not exist (as far as I know anyway).
2022-08-27 20:57:02 -07:00
CountBleck
26ee852336
Fix error reporting in Cyclone custom bare
console.log(e) is a bad idea in general. Moreover, errors cannot be
written to streams, since they are neither strings nor Buffers.
2022-08-27 20:02:17 -07:00
Green!
1cd37529aa Better theme system + updated Cyclone 2022-08-05 19:28:28 -04:00
Green!
8a0099a6cf
Update customBare.mjs 2022-07-25 19:09:50 -04:00
Cohen Erickson
c2a38fd7d6
Update customBare.mjs 2022-06-21 09:29:44 -05:00
SmartCoder3000
1b10cbad1f
Cyclone :) 2022-06-17 17:54:22 -04:00
SmartCoder3000
42d962a325
Cyclone :) 2022-06-17 17:52:55 -04:00
SmartCoder3000
c5bdfaebe6
Cyclone Support 2022-06-17 17:51:20 -04:00
Renamed from static/customBare.js (Browse further)