@@ -668,7 +668,7 @@ function changeCustomText() {
668668 customText = prompt ( "Custom text" ) ;
669669 customText = customText . replace ( / [ \n \r \t ] / gm, ' ' ) ;
670670 customText = customText . replace ( / + / gm, ' ' ) ;
671- initWords ( ) ;
671+ // initWords();
672672}
673673
674674function changeWordCount ( wordCount ) {
@@ -682,7 +682,6 @@ function changeWordCount(wordCount) {
682682 $ ( "#top .config .wordCount .button[wordCount='" + wordCount + "']" ) . addClass (
683683 "active"
684684 ) ;
685- restartTest ( ) ;
686685 saveConfigToCookie ( ) ;
687686}
688687
@@ -695,7 +694,6 @@ function changeTimeConfig(time) {
695694 time = "custom" ;
696695 }
697696 $ ( "#top .config .time .button[timeConfig='" + time + "']" ) . addClass ( "active" ) ;
698- restartTest ( ) ;
699697 saveConfigToCookie ( ) ;
700698}
701699
@@ -889,6 +887,7 @@ $(document).on("click", "#top .config .wordCount .button", (e) => {
889887 } else {
890888 changeWordCount ( wrd ) ;
891889 }
890+ restartTest ( ) ;
892891} ) ;
893892
894893$ ( document ) . on ( "click" , "#top .config .time .button" , ( e ) => {
@@ -901,10 +900,13 @@ $(document).on("click", "#top .config .time .button", (e) => {
901900 } else {
902901 changeTimeConfig ( time ) ;
903902 }
903+ restartTest ( ) ;
904904} ) ;
905905
906906$ ( document ) . on ( "click" , "#top .config .customText .button" , ( e ) => {
907907 changeCustomText ( ) ;
908+ restartTest ( ) ;
909+
908910} ) ;
909911
910912$ ( document ) . on ( "click" , "#top .config .punctuationMode .button" , ( e ) => {
@@ -1176,7 +1178,7 @@ if (window.location.hostname === "localhost") {
11761178$ ( document ) . ready ( ( ) => {
11771179 updateFavicon ( 32 , 14 ) ;
11781180 $ ( 'body' ) . css ( 'transition' , '.25s' ) ;
1179- // restartTest();
1181+ restartTest ( ) ;
11801182 if ( config . quickTab ) {
11811183 $ ( "#restartTestButton" ) . addClass ( 'hidden' ) ;
11821184 }
0 commit comments