mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 13:41:59 +00:00
fix ButtonItem shim applying when not needed
This commit is contained in:
@@ -30,12 +30,12 @@ if (!window.webpackJsonp || window.webpackJsonp.deckyShimmed) {
|
|||||||
if (mod[1].get_require) return { c: v4Cache };
|
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 () => {
|
(async () => {
|
||||||
window.deckyHasLoaded = true;
|
window.deckyHasLoaded = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user