mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add monkey patch for structured Clone
This commit is contained in:
6
public/lib/structured-clone/monkey-patch.js
Normal file
6
public/lib/structured-clone/monkey-patch.js
Normal file
@ -0,0 +1,6 @@
|
||||
import structuredClone from './index.js';
|
||||
|
||||
if (!("structuredClone" in globalThis)) {
|
||||
console.debug("Monkey-patching structuredClone");
|
||||
globalThis.structuredClone = structuredClone;
|
||||
}
|
Reference in New Issue
Block a user