Compare commits

...

6 Commits

Author SHA1 Message Date
Tom Wopat bb21e2c2d6
Merge a741bbe7e3 into 4090592112 2025-11-04 15:12:09 +01:00
Marc Brooks 4090592112
chore: add delay before forced page-reload (#916) 2025-11-04 15:12:03 +01:00
Tom Wopat a741bbe7e3 pr feedback 2025-10-29 20:27:49 -04:00
Tom Wopat 1f7083a023 Revert "feat: add fullscreen button"
This reverts commit dc7791c245.
2025-09-25 09:09:17 -04:00
Tom Wopat dc7791c245 feat: add fullscreen button 2025-09-23 23:50:06 -04:00
Tom Wopat 9affd248f3 feat: allow pointer lock when no video 2025-09-23 23:50:05 -04:00
4 changed files with 7 additions and 1 deletions

View File

@ -417,7 +417,7 @@ export default function WebRTCVideo({ hasConnectionIssues }: { hasConnectionIssu
});
if (isRelativeMouseMode) {
videoElmRefValue.addEventListener("click",
containerRef.current?.addEventListener("click",
() => {
if (isPointerLockPossible && !isPointerLockActive && !document.pointerLockElement) {
requestPointerLock();

View File

@ -313,6 +313,8 @@ export default function SettingsAdvancedRoute() {
text={m.advanced_reset_config_button()}
onClick={() => {
handleResetConfig();
// Add 2s delay between resetting the configuration and calling reload() to prevent reload from interrupting the RPC call to reset things.
await sleep(2000);
window.location.reload();
}}
/>

View File

@ -11,6 +11,8 @@ export default function SettingsGeneralRebootRoute() {
const onClose = useCallback(() => {
navigate(".."); // back to the devices.$id.settings page
// Add 1s delay between navigation and calling reload() to prevent reload from interrupting the navigation.
await sleep(1000);
window.location.reload(); // force a full reload to ensure the current device/cloud UI version is loaded
}, [navigate]);

View File

@ -23,6 +23,8 @@ export default function SettingsGeneralUpdateRoute() {
const onClose = useCallback(() => {
navigate(".."); // back to the devices.$id.settings page
// Add 1s delay between navigation and calling reload() to prevent reload from interrupting the navigation.
await sleep(1000);
window.location.reload(); // force a full reload to ensure the current device/cloud UI version is loaded
}, [navigate]);