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 fileName = parsedPath.base;
|
||||||
const buffer = await fs.promises.readFile(filePath);
|
const buffer = await fs.promises.readFile(filePath);
|
||||||
const blob = new Blob([buffer]);
|
const response = new Response(buffer, {
|
||||||
const response = new Response(blob, {
|
|
||||||
status: 200,
|
status: 200,
|
||||||
statusText: 'OK',
|
statusText: 'OK',
|
||||||
headers: {
|
headers: {
|
||||||
|
Reference in New Issue
Block a user