We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c200d6f commit b95f7efCopy full SHA for b95f7ef
1 file changed
src/app/services/photo.service.ts
@@ -21,7 +21,8 @@ export class PhotoService {
21
const photos = await Storage.get({ key: this.PHOTO_STORAGE });
22
this.photos = JSON.parse(photos.value) || [];
23
24
- if (this.platform.is('pwa')) {
+ // If running on the web...
25
+ if (!this.platform.is('hybrid')) {
26
// Display the photo by reading into base64 format
27
for (let photo of this.photos) {
28
// Read each saved photo's data from the Filesystem
@@ -34,6 +35,9 @@ export class PhotoService {
34
35
photo.base64 = `data:image/jpeg;base64,${readFile.data}`;
36
}
37
38
+ else {
39
+ console.log(this.platform.platforms());
40
+ }
41
42
43
/* Use the device camera to take a photo:
0 commit comments