10 lines
183 B
JavaScript
10 lines
183 B
JavaScript
var time = true;
|
|
function timer() {
|
|
console.log("haha");
|
|
postMessage("ok");
|
|
}
|
|
|
|
if (time) {
|
|
var myVar = setInterval(function () { timer() }, 300000);
|
|
time = false;
|
|
} |