Fix type error
This commit is contained in:
parent
63b78aa109
commit
db7006cb18
@ -292,7 +292,7 @@ public class BackgroundMode extends CordovaPlugin {
|
|||||||
eventName = "failure";
|
eventName = "failure";
|
||||||
}
|
}
|
||||||
|
|
||||||
String active = event == Event.ACTIVATE ? "true" : false;
|
String active = event == Event.ACTIVATE ? "true" : "false";
|
||||||
|
|
||||||
String flag = String.format("%s._isActive=%s;",
|
String flag = String.format("%s._isActive=%s;",
|
||||||
JS_NAMESPACE, active);
|
JS_NAMESPACE, active);
|
||||||
|
Loading…
Reference in New Issue
Block a user