#231 fix error "console is undefined".