The current onload() tries to make use of this.app.mobileToolbar without checking that it actually exists, which leads to an error in the console that's confusing unless you know what it is (I sorted through every plugin to find what was causing it). This change allows the platform check that's already in place to stop the rest of the plugin from trying to happen, and also makes the load and unload messages reflect the identity of the plugin.
The current
onload()
tries to make use ofthis.app.mobileToolbar
without checking that it actually exists, which leads to an error in the console that's confusing unless you know what it is (I sorted through every plugin to find what was causing it). This change allows the platform check that's already in place to stop the rest of the plugin from trying to happen, and also makes the load and unload messages reflect the identity of the plugin.