File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const pageExecute: Record<string, (data: any) => void> = {};
3131function App ( ) {
3232 const { subscribeMessage } = useAppContext ( ) ;
3333
34- const AUTO_CLOSE_PAGE = 8000 ; // after 8s, auto close
34+ const AUTO_CLOSE_PAGE = 8 ; // after 8s, auto close
3535 const getUrlParam = ( key : string ) : string => {
3636 return ( location . search ?. includes ( `${ key } =` ) ? new URLSearchParams ( location . search ) . get ( `${ key } ` ) : "" ) || "" ;
3737 } ;
@@ -51,7 +51,7 @@ function App() {
5151 const [ mStatusText , setStatusText ] = useState < string > ( "" ) ;
5252
5353 // unit: second
54- const [ mTimeClose , setTimeClose ] = useState < number > ( initialTimeForAutoClosePage / 1000 ) ;
54+ const [ mTimeClose , setTimeClose ] = useState < number > ( initialTimeForAutoClosePage ) ;
5555 useEffect ( ( ) => {
5656 if ( mTimeClose < 0 ) return ;
5757 if ( mTimeClose === 0 ) {
You can’t perform that action at this time.
0 commit comments