SillyTavern/public/lib/structured-clone/monkey-patch.js

7 lines
191 B
JavaScript
Raw Normal View History

2023-08-25 15:40:43 +02:00
import structuredClone from './index.js';
if (!("structuredClone" in globalThis)) {
console.debug("Monkey-patching structuredClone");
globalThis.structuredClone = structuredClone;
}