From 55a76826633ba0678f30aca21153cfc446964f0c Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Wed, 17 Aug 2022 17:32:50 -0700 Subject: fix ButtonItem shim applying when not needed --- frontend/src/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 96c3306c..11aabc9f 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -30,12 +30,12 @@ if (!window.webpackJsonp || window.webpackJsonp.deckyShimmed) { if (mod[1].get_require) return { c: v4Cache }; }, }; + CommonUIModule.__deckyButtonItemShim = forwardRef((props: any, ref: any) => { + // tricks the old filter into working + const dummy = `childrenContainerWidth:"min"`; + return ; + }); } -CommonUIModule.__deckyButtonItemShim = forwardRef((props: any, ref: any) => { - // tricks the old filter into working - const dummy = `childrenContainerWidth:"min"`; - return ; -}); (async () => { window.deckyHasLoaded = true; -- cgit v1.2.3