Skip to content

Commit a55294f

Browse files
Update docs/angular/your-first-app/5-adding-mobile.md
Co-authored-by: Brandy Smith <[email protected]>
1 parent c0b36f1 commit a55294f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/angular/your-first-app/5-adding-mobile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class PhotoService {
4848

4949
## Platform-specific Logic
5050

51-
First, we’ll update the photo saving functionality to support mobile. In the `savePicture()` method, check which platform the app is running on. If it’s “hybrid” (Capacitor, the native runtime), then read the photo file into base64 format using the `Filesystem`'s' `readFile()` method. Otherwise, use the same logic as before when running the app on the web.
51+
First, we’ll update the photo saving functionality to support mobile. In the `savePicture()` method, check which platform the app is running on. If it’s “hybrid” (Capacitor, the native runtime), then read the photo file into base64 format using the `Filesystem.readFile()` method. Otherwise, use the same logic as before when running the app on the web.
5252

5353
Update `savePicture()` to look like the following:
5454

0 commit comments

Comments
 (0)