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

7 lines
191 B
JavaScript

import structuredClone from './index.js';
if (!("structuredClone" in globalThis)) {
console.debug("Monkey-patching structuredClone");
globalThis.structuredClone = structuredClone;
}