Is there any way to prevent the timer applied to the hosted workspace from stopping in any state?

I'm working on a TMS Web Core project.
In our project, we have noticed that the Timer applied to the hosted work screen stops when the page is out of focus or not in use and resumes when the screen is focused.
Is there any way to prevent the timer applied to the hosted workspace from stopping in any state?

Browsers do this deliberately. To get around it you can try and use this library.

For example, add the following line as the first library in the <head> section of Project.html. Or at least before anything that might initialize a timer (like jQuery or Bootstrap or anything like that).

<!-- HackTimer -->
<script src="https://cdn.jsdelivr.net/npm/hacktimer@latest/HackTimer.silent.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hacktimer@latest/HackTimerWorker.min.js"></script>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.