Add console error detection and remove it for iOS
Please enter the commit message for your changes. Lines starting