getDirection: window.console commented out