From 9ca13d125056b05272b8566aed6ba2ea27fd2356 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sat, 29 Jun 2024 04:45:00 -0300 Subject: [PATCH] boop --- src/webpack/common/menu.ts | 2 +- src/webpack/common/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpack/common/menu.ts b/src/webpack/common/menu.ts index 91a40bd50..4c231d241 100644 --- a/src/webpack/common/menu.ts +++ b/src/webpack/common/menu.ts @@ -25,5 +25,5 @@ export const Menu = findByProps("MenuItem", "MenuSliderControl"); export const ContextMenuApi: t.ContextMenuApi = mapMangledModule('type:"CONTEXT_MENU_OPEN', { closeContextMenu: filters.byCode("CONTEXT_MENU_CLOSE"), openContextMenu: filters.byCode("renderLazy:"), - openContextMenuLazy: e => typeof e === "function" && e.toString().length < 100 + openContextMenuLazy: e => typeof e === "function" && String(e).length < 100 }); diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index 250361c12..918c460bc 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -154,7 +154,7 @@ const openExpressionPickerMatcher = canonicalizeMatch(/setState\({activeView:\i, // TODO: type export const ExpressionPickerStore: t.ExpressionPickerStore = mapMangledModule("expression-picker-last-active-view", { closeExpressionPicker: filters.byCode("setState({activeView:null"), - openExpressionPicker: m => typeof m === "function" && openExpressionPickerMatcher.test(m.toString()), + openExpressionPicker: m => typeof m === "function" && openExpressionPickerMatcher.test(String(m)), }); export const PopoutActions: t.PopoutActions = mapMangledModule('type:"POPOUT_WINDOW_OPEN"', {