mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix WASM load hanging on some Node versions <20.6.0
This commit is contained in:
@@ -78,8 +78,7 @@ globalThis.fetch = async (/** @type {string | URL | Request} */ request, /** @ty
|
||||
}
|
||||
const fileName = parsedPath.base;
|
||||
const buffer = await fs.promises.readFile(filePath);
|
||||
const blob = new Blob([buffer]);
|
||||
const response = new Response(blob, {
|
||||
const response = new Response(buffer, {
|
||||
status: 200,
|
||||
statusText: 'OK',
|
||||
headers: {
|
||||
|
Reference in New Issue
Block a user