Spaces:
Running
Running
Commit ·
4b920eb
1
Parent(s): a18d8e0
Fix: bug on pop up warning for eye gaze
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 |
-
() => localStorage.getItem('
|
| 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 |
-
localStorage.setItem('
|
| 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 |
+
() => localStorage.getItem('focusguard_eyegaze_skipmodal') === 'true'
|
| 115 |
);
|
| 116 |
|
| 117 |
const localVideoRef = useRef(null);
|
|
|
|
| 350 |
|
| 351 |
const handleEyeGazeModalAction = async (withCalibration) => {
|
| 352 |
if (eyeGazeDontShow) {
|
| 353 |
+
localStorage.setItem('focusguard_eyegaze_skipmodal', 'true');
|
| 354 |
}
|
| 355 |
setShowEyeGazeModal(false);
|
| 356 |
await applyEyeGazeChange(true, withCalibration);
|