Merge branch 'master' of github.com:fyayc-chrisat/cordova-plugin-background-mode

This commit is contained in:
Nathan Kerr 2019-03-11 15:08:47 -07:00
commit 0e9b95013d

View File

@ -303,7 +303,7 @@ public class BackgroundMode extends CordovaPlugin {
String str = String.format("%s._setActive(%b)",
JS_NAMESPACE, active);
str = String.format("%s;%s.on%s(%s)",
str = String.format("%s;%s.on('%s', %s)",
str, JS_NAMESPACE, eventName, params);
str = String.format("%s;%s.fireEvent('%s',%s);",