fix(ui): initialize standalone controls synchronously
This commit is contained in:
parent
3f80d7cd25
commit
4aa6a22686
|
|
@ -34,7 +34,9 @@ function ControlButton({
|
|||
}
|
||||
|
||||
export function StandaloneBrowserControls({ mobile }: { mobile: boolean }) {
|
||||
const [chromeless, setChromeless] = useState(false);
|
||||
const [chromeless, setChromeless] = useState(() =>
|
||||
typeof window !== "undefined" && mobile ? isChromelessDisplayMode() : false,
|
||||
);
|
||||
const toastActions = useOptionalToastActions();
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue