Skip to content

Commit

Permalink
Fixed typo in headless-js-android.md (facebook#3377)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh316 authored Oct 19, 2022
1 parent e4d0982 commit 262ff68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/headless-js-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class MyTaskService extends HeadlessJsTaskService {
"SomeTaskName",
Arguments.fromBundle(extras),
5000, // timeout for the task
false // optional: defines whether or not the task is allowed in foreground. Default is false
false // optional: defines whether or not the task is allowed in foreground. Default is false
);
}
return null;
Expand All @@ -79,10 +79,10 @@ class MyTaskService : HeadlessJsTaskService() {
override fun getTaskConfig(intent: Intent): HeadlessJsTaskConfig? {
return intent.extras?.let {
HeadlessJsTaskConfig(
"SomeT askName",
"SomeTaskName",
Arguments.fromBundle(it),
5000, // timeout for the task
false // optional: defines whether or not the task is allowed in foreground.
false // optional: defines whether or not the task is allowed in foreground.
// Default is false
)
}
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.70/headless-js-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class MyTaskService extends HeadlessJsTaskService {
"SomeTaskName",
Arguments.fromBundle(extras),
5000, // timeout for the task
false // optional: defines whether or not the task is allowed in foreground. Default is false
false // optional: defines whether or not the task is allowed in foreground. Default is false
);
}
return null;
Expand All @@ -79,10 +79,10 @@ class MyTaskService : HeadlessJsTaskService() {
override fun getTaskConfig(intent: Intent): HeadlessJsTaskConfig? {
return intent.extras?.let {
HeadlessJsTaskConfig(
"SomeT askName",
"SomeTaskName",
Arguments.fromBundle(it),
5000, // timeout for the task
false // optional: defines whether or not the task is allowed in foreground.
false // optional: defines whether or not the task is allowed in foreground.
// Default is false
)
}
Expand Down

0 comments on commit 262ff68

Please sign in to comment.