Skip to content

Commit 262ff68

Browse files
authored
Fixed typo in headless-js-android.md (facebook#3377)
1 parent e4d0982 commit 262ff68

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/headless-js-android.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class MyTaskService extends HeadlessJsTaskService {
5656
"SomeTaskName",
5757
Arguments.fromBundle(extras),
5858
5000, // timeout for the task
59-
false // optional: defines whether or not the task is allowed in foreground. Default is false
59+
false // optional: defines whether or not the task is allowed in foreground. Default is false
6060
);
6161
}
6262
return null;
@@ -79,10 +79,10 @@ class MyTaskService : HeadlessJsTaskService() {
7979
override fun getTaskConfig(intent: Intent): HeadlessJsTaskConfig? {
8080
return intent.extras?.let {
8181
HeadlessJsTaskConfig(
82-
"SomeT askName",
82+
"SomeTaskName",
8383
Arguments.fromBundle(it),
8484
5000, // timeout for the task
85-
false // optional: defines whether or not the task is allowed in foreground.
85+
false // optional: defines whether or not the task is allowed in foreground.
8686
// Default is false
8787
)
8888
}

website/versioned_docs/version-0.70/headless-js-android.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class MyTaskService extends HeadlessJsTaskService {
5656
"SomeTaskName",
5757
Arguments.fromBundle(extras),
5858
5000, // timeout for the task
59-
false // optional: defines whether or not the task is allowed in foreground. Default is false
59+
false // optional: defines whether or not the task is allowed in foreground. Default is false
6060
);
6161
}
6262
return null;
@@ -79,10 +79,10 @@ class MyTaskService : HeadlessJsTaskService() {
7979
override fun getTaskConfig(intent: Intent): HeadlessJsTaskConfig? {
8080
return intent.extras?.let {
8181
HeadlessJsTaskConfig(
82-
"SomeT askName",
82+
"SomeTaskName",
8383
Arguments.fromBundle(it),
8484
5000, // timeout for the task
85-
false // optional: defines whether or not the task is allowed in foreground.
85+
false // optional: defines whether or not the task is allowed in foreground.
8686
// Default is false
8787
)
8888
}

0 commit comments

Comments
 (0)