mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 18:30:39 +09:00
fix(ui): initialize standalone controls synchronously
This commit is contained in:
parent
3f80d7cd25
commit
4aa6a22686
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue