You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Use webPath to display the new image instead of base64 since it's
82
+
// already loaded into memory
83
+
return {
84
+
filepath: fileName,
85
+
webviewPath: photo.webPath
86
+
};
87
+
}
88
+
}
89
89
```
90
90
91
91
Next, head back over to the `loadSaved()` function we implemented for the web earlier. On mobile, we can directly set the source of an image tag - `<img src="x" />` - to each photo file on the Filesystem, displaying them automatically. Thus, only the web requires reading each image from the Filesystem into base64 format. Update this function to add an _if statement_ around the Filesystem code:
// Use webPath to display the new image instead of base64 since it's
82
+
// already loaded into memory
83
+
return {
84
+
filepath: fileName,
85
+
webviewPath: photo.webPath
86
+
};
87
+
}
88
+
}
89
89
```
90
90
91
91
Next, head back over to the `loadSaved()` function we implemented for the web earlier. On mobile, we can directly set the source of an image tag - `<img src="x" />` - to each photo file on the Filesystem, displaying them automatically. Thus, only the web requires reading each image from the Filesystem into base64 format. Update this function to add an _if statement_ around the Filesystem code:
0 commit comments