This is done by maintaining a |last_refresh| which contains the last time the port received a message.
This should resolve the issue where the |time_played| gets desynced significantly from the actual play time when the background page dev tools are not open.
…e time since the last refresh.
This is done by maintaining a |last_refresh| which contains the last time the port received a message.
This should resolve the issue where the |time_played| gets desynced significantly from the actual play time when the background page dev tools are not open.