Spaces:
Sleeping
Sleeping
Commit ·
0cbbef7
1
Parent(s): 7d6010e
Fix: bug for eye gaze popup window
Browse files110 unmodified lines111112113114115116117232 unmodified lines350351352353354355356110 unmodified linesconst [l2csBoostAvailable, setL2csBoostAvailable] = useState(false);const [showEyeGazeModal, setShowEyeGazeModal] = useState(false);const [eyeGazeDontShow, setEyeGazeDontShow] = useState(() => localStorage.getItem('focusguard_eyegaze_skipmodal') === 'true');const localVideoRef = useRef(null);232 unmodified linesconst handleEyeGazeModalAction = async (withCalibration) => {if (eyeGazeDontShow) {localStorage.setItem('focusguard_eyegaze_skipmodal', 'true');}setShowEyeGazeModal(false);await applyEyeGazeChange(true, withCalibration);110 unmodified lines111112113114115116117232 unmodified lines350351352353354355356110 unmodified linesconst [l2csBoostAvailable, setL2csBoostAvailable] = useState(false);const [showEyeGazeModal, setShowEyeGazeModal] = useState(false);const [eyeGazeDontShow, setEyeGazeDontShow] = useState(() => sessionStorage.getItem('focusguard_eyegaze_skipmodal') === 'true');const localVideoRef = useRef(null);232 unmodified linesconst handleEyeGazeModalAction = async (withCalibration) => {if (eyeGazeDontShow) {sessionStorage.setItem('focusguard_eyegaze_skipmodal', 'true');}setShowEyeGazeModal(false);await applyEyeGazeChange(true, withCalibration);
src/components/FocusPageLocal.jsx+2-2