Prevent error being thrown in non-mobile browers