Przeglądaj źródła

log the current settings when starting a calculation

Bernadette Elena Hammerle 2 lat temu
rodzic
commit
d1f8446e71
2 zmienionych plików z 4 dodań i 0 usunięć
  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