add debugLog function to make debug logging a one-liner

Issue #25 resolved
radiumsoup created an issue

create function debugLog(logobject) that checks for debug flag and global search and replace instances of 'if(sessionstorage.getItem("debug"logging"))...' with call to function

Comments (2)

  1. radiumsoup reporter

    found bug where debug was true even if set to false (the check only looked for key, not value) - if debug_logging was true and then set to false, key was read and check resulted in true. Fixed.

    function debugLog created, will check and echo passed object only if debug is set.

    cannot globally search and replace because some console.log entries are there regardless of debug_logging value.

  2. Log in to comment