Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
harden memory recall logic to be fail-safe
Hardened the CSS class memory recall function against critical inpupt errors in exceptional cases. One could never know if this code will run in the apps or hardware for critical life support. Or maybe inside of machines that need to work 100% all the time to support safety of humans. Now the functon exits the loop, if any errors of the input variables are found. Limits possible attack vectors, where safety is an issue. If you want to test the function for critical errors or with false data input, use those console log variables for testing. Fake the input data and see what happens in the console logs. console.log( "load state was: " + document.readyState ) ; console.log( "Tag : " + Tag ) ; console.log( "TagNotAlive : " + TagNotAlive ) ; console.log( "MemoryName : " + MemoryName ) ; console.log( "MemoryValue : " + MemoryValue ) ;
- Loading branch information