H
H
heatshot132018-04-13 11:34:04
JavaScript
heatshot13, 2018-04-13 11:34:04

How to run js code every 12 hours in google chrome extension?

Hello, there is an application that should copy the necessary data every 12 hours and send it to our site, that is, it works by default while the browser is open, there are a couple of problems, because if you set the right time, the user may be offline, and when the browser starts it’s not the same the time at which the code should run.
Who has any idea how to do it in js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-04-13
@rockon404

You can request the date of the last copy, if it is overdue, start copying and update the date, if it is not overdue, start the timer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question