Is possible to remove alert() from the plugin when brushes are not founded?
Is possible to remove alert() from the plugin when brushes are not founded?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Per my comment above, diverting alerts to console:
Works great for “old-school” debugging, too. You can safely use “alert” instead of “console.log” and then when you test your application in a browser that doesn’t have console you can still see your debugging output.
Note: in such browsers, alert will still appear. I presume this is a good thing, because the user will need to be told that something has failed. If this is NOT a good thing, because you want to avoid the warnings altogether, the above code will not necessarily help.