Spaces:
Sleeping
Sleeping
Commit ·
0cbbef7
1
Parent(s): 7d6010e
Fix: bug for eye gaze popup window
Browse files
src/components/FocusPageLocal.jsx
CHANGED
|
@@ -111,7 +111,7 @@ function FocusPageLocal({ videoManager, sessionResult, setSessionResult, isActiv
|
|
| 111 |
const [l2csBoostAvailable, setL2csBoostAvailable] = useState(false);
|
| 112 |
const [showEyeGazeModal, setShowEyeGazeModal] = useState(false);
|
| 113 |
const [eyeGazeDontShow, setEyeGazeDontShow] = useState(
|
| 114 |
-
() =>
|
| 115 |
);
|
| 116 |
|
| 117 |
const localVideoRef = useRef(null);
|
|
@@ -350,7 +350,7 @@ function FocusPageLocal({ videoManager, sessionResult, setSessionResult, isActiv
|
|
| 350 |
|
| 351 |
const handleEyeGazeModalAction = async (withCalibration) => {
|
| 352 |
if (eyeGazeDontShow) {
|
| 353 |
-
|
| 354 |
}
|
| 355 |
setShowEyeGazeModal(false);
|
| 356 |
await applyEyeGazeChange(true, withCalibration);
|
|
|
|
| 111 |
const [l2csBoostAvailable, setL2csBoostAvailable] = useState(false);
|
| 112 |
const [showEyeGazeModal, setShowEyeGazeModal] = useState(false);
|
| 113 |
const [eyeGazeDontShow, setEyeGazeDontShow] = useState(
|
| 114 |
+
() => sessionStorage.getItem('focusguard_eyegaze_skipmodal') === 'true'
|
| 115 |
);
|
| 116 |
|
| 117 |
const localVideoRef = useRef(null);
|
|
|
|
| 350 |
|
| 351 |
const handleEyeGazeModalAction = async (withCalibration) => {
|
| 352 |
if (eyeGazeDontShow) {
|
| 353 |
+
sessionStorage.setItem('focusguard_eyegaze_skipmodal', 'true');
|
| 354 |
}
|
| 355 |
setShowEyeGazeModal(false);
|
| 356 |
await applyEyeGazeChange(true, withCalibration);
|