createViewport: fix check

rename `console` after refactoring 3465e5031b405152b2fe3b73917f58845520d8d7