-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cordova-plugin): add check if method exists #1348
Conversation
Thanks @ihadeed , I did not notice it. Also, Do you agree? |
@ihadeed I managed to figure out that the plugin is the Rollbar native plugin. |
Ah I see what's wrong. I forgot to add It should be:
Ideally all checks should be in that method and not in the one you modified. Could you please edit your PR and modify the |
@ihadeed Done. |
Thanks! You're right, the message will be wrong. But I think it's good for most cases. Usually all the methods that we have in our wrappers exist on the original plugin. Which means that Here is why we check both If you look at the screen orientation plugin for example, it used to add If you see any plugins that might benefit from having different error messages for P.S: just fixed the pluginRef for the Rollbar plugin: f396940 |
@ihadeed Thanks a lot! Its funny, I have rollbar.js also, which means I have around 200 errors, 20 unique, giving me an error, because rollbar native has a wrong reference :P I find it hilarious. |
Any chance for a new release? this is quite a major fix (for my code at least) |
For: #1327
I get an error, originating there, and I need to know how to handle it