Browser extension stops working if browser is kept idle overnight

I am facing an issue with browser extension. extension stops working if we keep the browser idle for overnight. This happens on MacOS as well as iOS device.

Are you sure the problem is the browser, and not your (JavaScript) code.

Please refer the sample code below to reproduce the issue. There are multiple scenarios like;

  1. Close the browser and re-open it
  2. keep the browser idle for an hour.

Extension stops working in these two cases; By looking at the code, can you guide us what are we doing wrong here ?

Hi, I am facing the same issue, did you find a fix for this?

Browser extension stops working if browser is kept idle overnight
 
 
Q