Fix structuredClone

c022858e5b667f121045b1b6d2873ddc40ac5381

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Ignore whitespace
public/scripts/power-user.js+2 -2
@@ -1992,8 +1992,8 @@ export function fuzzySearchGroups(searchValue, fuzzySearchCaches = null) {
1992 */1992 */
1993export function renderStoryString(params, { customStoryString = null, customInstructSettings = null } = {}) {1993export function renderStoryString(params, { customStoryString = null, customInstructSettings = null } = {}) {
1994 try {1994 try {
1995 const storyString = structuredClone(customStoryString ?? power_user.context.story_string);1995 const storyString = customStoryString ?? power_user.context.story_string;
1996 const instructSettings = customInstructSettings ?? power_user.instruct;1996 const instructSettings = structuredClone(customInstructSettings ?? power_user.instruct);
19971997
1998 // Validate and log possible warnings/errors1998 // Validate and log possible warnings/errors
1999 validateStoryString(storyString, params);1999 validateStoryString(storyString, params);