79260081

Date: 2024-12-07 06:37:38
Score: 1
Natty:
Report link

Add the below condition inside the try block present in the getTokenFirebase function with this:

try {
if (typeof window !== 'undefined' && 'serviceWorker' in navigator) {
    ...
 }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dharani Velkur