File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323< body >
2424 < div id ="app "> </ div >
2525 < script type ="text/babel ">
26+ const params = new URLSearchParams ( location . search ) ;
27+
2628 const App = ( props ) => {
2729 const [ priority , setPriority ] = React . useState ( 255 ) ;
2830 const [ timer , setTimer ] = React . useState ( 5 ) ;
2931 const [ channel , setChannel ] = React . useState ( 5 ) ;
3032 const [ menuCount , setMenuCount ] = React . useState ( 1 ) ;
3133 const [ entryLabelLength , setEntryLabelLength ] = React . useState ( 32 ) ;
32- const [ useUiccFs , setUseUiccFs ] = React . useState ( false ) ;
33- const [ adf1Aid , setAdf1Aid ] = React . useState ( "" ) ;
34+ const [ useUiccFs , setUseUiccFs ] = React . useState ( params . get ( "useuiccfs" ) === "true" || false ) ;
35+ const [ adf1Aid , setAdf1Aid ] = React . useState ( params . get ( "adf1aid" ) || "" ) ;
3436
3537 const [ generatedUssp , setGeneratedUssp ] = React . useState ( "" ) ;
3638
You can’t perform that action at this time.
0 commit comments