Skip to content

Commit c2b60dd

Browse files
committed
Headless JS - fix markdown typo.
Summary: Closes #10448 Differential Revision: D4039297 Pulled By: lacker fbshipit-source-id: 21a398e3d35b2aa3d34cd35c865d36cf5a9e4b25
1 parent 60b2b51 commit c2b60dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/HeadlessJSAndroid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public class MyTaskService extends FbHeadlessJsTaskService {
4949
}
5050
```
5151

52-
Now, whenever you [start your service](https://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent)), e.g. as a periodic task or in response to some system event / broadcast, JS will spin up, run your task, then spin down.
52+
Now, whenever you [start your service](https://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent), e.g. as a periodic task or in response to some system event / broadcast, JS will spin up, run your task, then spin down.
5353

5454
## Caveats
5555

5656
* By default, your app will crash if you try to run a task while the app is in the foreground. This is to prevent developers from shooting themselves in the foot by doing a lot of work in a task and slowing the UI. There is a way around this.
57-
* If you start your service from a BroadcastReceiver, make sure to call `HeadlessJsTaskService.acquireWakelockNow()` before returning from `onReceive()`.
57+
* If you start your service from a `BroadcastReceiver`, make sure to call `HeadlessJsTaskService.acquireWakelockNow()` before returning from `onReceive()`.

0 commit comments

Comments
 (0)