fix canvas detection and hide webworker detection