Closed swarajp486 closed 2 years ago
Thanks for pointing it out. This is a very big error as it makes the whole code vulnerable to constant reassignment. Great work. You can proceed with a fix.
Thanks for pointing it out. This is a very big error as it makes the whole code vulnerable to constant reassignment. Great work. You can proceed with a fix.
Yes sure.
In
background.js
, the code at line number88
makes the if statement immediately following it unsuable. As theurlData
variable is declared as constant, it cannot be updated inside the if statement which will throw an error and abort the service worker when the if statement holds true and the statement is reached.