Skip to content

Commit 7dcd3db

Browse files
authored
Merge pull request #897 from OneSignal/remove-arrow-functions
Removed ES6 arrow functions to support older devices
2 parents ce5d918 + cd6fcdd commit 7dcd3db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export default class OneSignal {
472472
* Outcomes
473473
*/
474474

475-
static sendOutcome(name, callback=()=>{}) {
475+
static sendOutcome(name, callback=function(){}) {
476476
if (!checkIfInitialized()) return;
477477

478478
if (Platform.OS === "ios") {
@@ -488,7 +488,7 @@ export default class OneSignal {
488488
RNOneSignal.sendOutcome(name, callback);
489489
}
490490

491-
static sendUniqueOutcome(name, callback=()=>{}) {
491+
static sendUniqueOutcome(name, callback=function(){}) {
492492
if (!checkIfInitialized()) return;
493493

494494
if (Platform.OS === "ios") {
@@ -504,7 +504,7 @@ export default class OneSignal {
504504
RNOneSignal.sendUniqueOutcome(name, callback);
505505
}
506506

507-
static sendOutcomeWithValue(name, value, callback=()=>{}) {
507+
static sendOutcomeWithValue(name, value, callback=function(){}) {
508508
if (!checkIfInitialized()) return;
509509

510510
if (Platform.OS === "ios") {

0 commit comments

Comments
 (0)