소스 검색

log the current settings when starting a calculation

Bernadette Elena Hammerle 2 년 전
부모
커밋
d1f8446e71
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Addition.js
  2. 2 0
      src/Subtraction.js

+ 2 - 0
src/Addition.js

@@ -25,11 +25,13 @@ function Addition() {
     let autoMove = window.localStorage.getItem("autoMoveComma");
     if(autoMove !== null){
       setAutoMoveComma(JSON.parse(autoMove));
+      console.log("auto move comma:", autoMove);
     }
 
     let allowStart = window.localStorage.getItem("allowStartOver");
     if(allowStart !== null){
       setAllowStartOver(JSON.parse(allowStart));
+      console.log("allow start over:", allowStart);
     }
 
     // focus the input field

+ 2 - 0
src/Subtraction.js

@@ -25,11 +25,13 @@ function Subtraction() {
     let autoMove = window.localStorage.getItem("autoMoveComma");
     if(autoMove !== null){
       setAutoMoveComma(JSON.parse(autoMove));
+      console.log("auto move comma:", autoMove);
     }
 
     let allowStart = window.localStorage.getItem("allowStartOver");
     if(allowStart !== null){
       setAllowStartOver(JSON.parse(allowStart));
+      console.log("allow start over:", allowStart);
     }
 
     // focus the input field