diff --git a/.firebase/hosting.ZGlzdC9zaG9w.cache b/.firebase/hosting.ZGlzdC9zaG9w.cache index f16cf47..16087e2 100644 --- a/.firebase/hosting.ZGlzdC9zaG9w.cache +++ b/.firebase/hosting.ZGlzdC9zaG9w.cache @@ -1,14 +1,14 @@ -favicon.ico,1570443535372,a2aee5309d0b59b9b66384ccc3969a07fab1b320d0bf76f1b25047a051d7f774 -firebase-messaging-sw.js,1570443535372,eb91aae351894488c68cd8a9722e01489cc966bbc8e464ec074ad2f4b54721d1 -index.html,1570443535554,5dc671f5a29b8edf7b4b2e67dad4e780801be8764c267ec2248b0c329a6af22f -manifest.json,1570443535372,b236f66e833f017555071d38f5124e5ef5486361a835ceb835aeefc32bb94657 -5-es2015.098b6ce23d8279857db9.js,1570441440107,0a9830cbbd78f7184c0cfd5e48b4046610e2bb880c2f28916e6df30180bb3deb -runtime-es2015.8dff9094aacaea442582.js,1570441455627,1b15bd5e7e75962879f495c4b6cf200f63f972758caee31746b98d6ade6ebe41 -runtime-es5.8dff9094aacaea442582.js,1570441455630,f433c7993a858dfcdb62c26f965666a93bc0573d6ee38d98af25d0532cf57127 +index.html,1570552831379,94ac37b637b08991762021dbe1b9024c1139c605000caab104819ac95e17f375 +favicon.ico,1570552811033,a2aee5309d0b59b9b66384ccc3969a07fab1b320d0bf76f1b25047a051d7f774 5-es5.098b6ce23d8279857db9.js,1570441440115,6041a5c2629c3fa7ce0c4b9df35936e0b8cb70ef639233cd7b29edfe3ff4bdba +manifest.json,1570552811033,b236f66e833f017555071d38f5124e5ef5486361a835ceb835aeefc32bb94657 +firebase-messaging-sw.js,1570552811034,eb91aae351894488c68cd8a9722e01489cc966bbc8e464ec074ad2f4b54721d1 +runtime-es2015.8dff9094aacaea442582.js,1570441455627,1b15bd5e7e75962879f495c4b6cf200f63f972758caee31746b98d6ade6ebe41 +5-es2015.098b6ce23d8279857db9.js,1570441440107,0a9830cbbd78f7184c0cfd5e48b4046610e2bb880c2f28916e6df30180bb3deb polyfills-es2015.d3e61f0dd2b58e518eca.js,1570441439042,cf1c253ad4103f33e584a90a983330fdd45a36e7567849324bb84bfb277d7619 -3rdpartylicenses.txt,1570443535372,2eb6b50483b786605c2a8462efec3d4d562566fd275b18f862b99e6288e89986 -styles.ffd894f40fcd4cb7de7a.css,1570443535372,1ab464a2fd7e565dc8234acafa86bd7bbe365050896290b6317742af368ce1c4 +runtime-es5.8dff9094aacaea442582.js,1570441455630,f433c7993a858dfcdb62c26f965666a93bc0573d6ee38d98af25d0532cf57127 +3rdpartylicenses.txt,1570552811033,2eb6b50483b786605c2a8462efec3d4d562566fd275b18f862b99e6288e89986 +styles.ffd894f40fcd4cb7de7a.css,1570552811033,1ab464a2fd7e565dc8234acafa86bd7bbe365050896290b6317742af368ce1c4 polyfills-es5.f8b5a32bf736d11d106f.js,1570441441473,17f995d4c9633b19cd123084c1098a992547dd2e543b16f3362e3b6185a5175d -main-es2015.e871b784e6c790925729.js,1570441455129,0a4d37b2fa6327195a3206b0982f63bc09145be6328acbf98a268f87353f7359 -main-es5.e871b784e6c790925729.js,1570441455154,307abceb651ceb45bf690c5d5437ee672cde6576e7cb9c27496666a298c22aaf +main-es2015.82e69260d9eae8dbabce.js,1570552831314,cbf9fc75d48bd8e6d1d856adf6f68897db9ee0634bb1c0eba7d5ae7b336dc7d6 +main-es5.82e69260d9eae8dbabce.js,1570552831341,19ea84d20f213bd7f16d6eb601fa4ef2e217e3c60eaa21e5c0cc1d8a962b1510 diff --git a/src/app/services/notification.service.ts b/src/app/services/notification.service.ts index 14803ca..c1f1d33 100644 --- a/src/app/services/notification.service.ts +++ b/src/app/services/notification.service.ts @@ -22,12 +22,15 @@ export class NotificationsService { } setNotification(message: string, action?: string, error?: any) { - console.log(error.code); + if (error) { + console.log(error.code); + } + let notif_obj: Notification = { message: message, action: action ? action : "OK" }; - if (error.code && error.code === "permission-denied") { + if (error && error.code && error.code === "permission-denied") { notif_obj.message = "You don't have permission to perform this action!"; } this.notificationSubject.next(notif_obj);