summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorTrainDoctor <traindoctor@protonmail.com>2022-08-17 17:32:50 -0700
committerTrainDoctor <traindoctor@protonmail.com>2022-08-17 17:32:50 -0700
commit55a76826633ba0678f30aca21153cfc446964f0c (patch)
tree2f613f4a2252c931352d147a7fc24819eb4662aa /frontend
parentd05e8d36b435ae8a1b94880926a8849b19fbc350 (diff)
downloaddecky-loader-55a76826633ba0678f30aca21153cfc446964f0c.tar.gz
decky-loader-55a76826633ba0678f30aca21153cfc446964f0c.zip
fix ButtonItem shim applying when not neededv2.0.5-pre13
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/index.tsx10
1 files 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 <ButtonItem ref={ref} _shim={dummy} {...props} />;
+ });
}
-CommonUIModule.__deckyButtonItemShim = forwardRef((props: any, ref: any) => {
- // tricks the old filter into working
- const dummy = `childrenContainerWidth:"min"`;
- return <ButtonItem ref={ref} _shim={dummy} {...props} />;
-});
(async () => {
window.deckyHasLoaded = true;